摘要
虽然socket API是目前网络编程接口的事实标准,但它也存在一些的不足:接口复杂;使用不方便;协议无关性差;跨平台能力不强。针对这些问题,研究了跨平台和协议无关网络编程技术,并使用C++实现了一个跨平台协议无关网络类库。它可以同时支持Windows和Linux操作系统,支持以协议无关的方式进行网络编程,支持单播和ASM/SSM组播,支持UDP和TCP,支持基于TCP通信的标准输入输出流。通过在一个实际网络测量系统中的应用,验证了本类库达到了跨平台性和协议无关性的设计目标。
Although the socket API is the defact standard of network programming interface nowadays, it suffers from some shortages as high complexity of interface, poor support for protocol-indepondent programming, and low cross-platform capability. Concerning these problems, cross-platform and protocol-independent network programming techniques are studied. Furthermore, a cross-platform protocol-indepondent network class library is implemented with C++, which supports both Windows and Linux, protocol-indepondent network programming, unicast, ASM and SSM multicast, supports both UDP and TCP transmission,and standard I/O stream based on TCP communication. It validated that this class library has accomplished the cross-platform and protocol-indepondent design goal through application in a practical network measurement system.
出处
《中国教育网络》
2007年第2期45-48,共4页
China Education Network
关键词
跨平台
协议无关
网络编程接口
输入输出流
类库
cross-platform, protocol-independent, network API, iostream, class library