Design and Implementation of a Cross-platform Protocol Independent Network Class Library
JIANG Jin-peng,BAO Cong-xiao,Li Xing
DOI: https://doi.org/10.3969/j.issn.1672-9781.2007.02.012
2007-01-01
Abstract: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-independent programming, and low cross-platform capability. Concerning these problems, cross-platform and protocol-independent network programming techniques are studied. Furthermore, a cross-platform protocol-independent network class library is implemented with C++, which supports both Windows and Linux, protocol-independent 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-independent design goal through application in a practical network measurement system.