Typically, network program developers use "socket" directly to solve the TCP/IP network communication problem. Two deficiencies are clear: Firstly, the communication module in the application is complicate and difficult to implement due to the diversity of application requirement and/or environment; Secondly, it is almost impossible to reuse the communication module in other applications.The purpose of this paper is to discuss the design and implementation of LX-GC(Legend General Communication Kit). LX-GC is a cross platform(UNIX/Windows) software, based on TCP/IP socket. It uses communication agents to control send/receive data, uses information pools to confirm dependable transmission(data will be delayed if network is not ready), uses triggers to control process running, and provides API for application developers. LX-GC has been successfully used in designing a practical application system. The further improvement of LX-GC is also discussed. |