摘要: 在分析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.
中图分类号:
汪浩,严伟,任茂盛. 基于规则的IPv4源程序到IPv6源程序的移植方法[J]. , 2004, 30(23): 33-35.
WANG Hao,YAN Wei,REN Maosheng. A Rule-based Method for Transformation of an IPv4 Program to an IPv6 Program[J]. , 2004, 30(23): 33-35.