作者投稿和查稿 主编审稿 专家审稿 编委审稿 远程编辑

›› 2004, Vol. 30 ›› Issue (23): 33-35.

• 论文 • 上一篇    下一篇

基于规则的IPv4源程序到IPv6源程序的移植方法

汪浩,严伟,任茂盛   

  1. 北京大学计算机科学技术系网络实验室,北京大学计算机科学技术系网络实验室,北京大学计算机科学技术系网络实验室 北京 100871
  • 发布日期:2004-12-15

A Rule-based Method for Transformation of an IPv4 Program to an IPv6 Program

WANG Hao,YAN Wei,REN Maosheng   

  1. (Network Lab,Department of Computer Science and Technology,Peking University,Beijing 100871)
  • Published:2004-12-15

摘要: 在分析IPv4 Sockets API编程接口与IPv6 Sockets API编程接口异同的基础上,提出了一组替换规则,在不必阅读理解IPv4源程序的前提下,能将支持IPv4的源程序移植成支持IPv6的源程序。利用该移植方法,已成功地将Linux下的流媒体库LIVE和流媒体播放器Mplayer从支持IPv4移植成支持IPv6。

关键词: IPv4, IPv6, 程序移植

Abstract: This paper discusses the differences and the same aspects between IPv4 Sockets API and IPv6 Sockets API. After that, it gives a set of substitution rules which can be used to transform an IPv4 program to an IPv6 program. According to these rules, the authors have successfully ported a streaming media library called LIVE and a streaming media player called Mplayer from IPv4 to IPv6.

中图分类号: