Network programming is the most commonly used in client / server model, but the point-to-point communication mode programming simpler, less suitable for transmission of data flow of the occasion, such as control measure, and so on. Based on the PtoP Socket Communications is a flexible, easy-to-implement, low-cost method. It can run on all kinds of use of TCP / IP protocol as the communication protocol on the network. In Socket API's help, based on the development of the PtoP The study and development issues in the Unix environment to use TCP / IP protocol to develop a peer-to-peer (PtoP) basic framework for the exchange server (server management transfer) process. The basic framework of a transmission system from the management server, a download site (client), a number of transmission server (server). The client to download the request sent to the server, the server query the database and return to the address of the server-related transmission of information.
According to client server to return to the address of the server connected with the transmission of data downloaded. Server information collection, search and control the functions of state, other processing functions rely on the client and server transfer. The key research topics in the Unix environment how to use socket socket complete the process of communication. As for the middle of the collection of information, such as state control process for a similar function to replace the procedures to achieve.