APPLYING OBJECT- ORIENTED DESIGN PATTERNS IN CONSTRUCTING TCP/IP NETWORK APPLICATIONS
Abstract
TCP/IP protocol plays an important role in constructing network applications. Network applications which use TCP/IP protocol are usually implemented C/C++ with available function libraries. However, it is difficult to reuse source codes because of the existence of several function libraries for Unix and Windows with different programming interfaces. Besides, these programming interfaces cause clumsy, ambiguous and duplicate fragments of source codes. In this paper, we apply design patterns to develop an architecture of classes encapsulating TCP/IP protocol. These classes help developers write compatible source codes which can be reused in different environments, and create communication objects with more clear semantics.