(: With the development of computer networks, the communication between hosts in the network becomes more and more important. Through the analysis of the concept of socket and the principle of office, this article proposes the process of network communication programming, and discusses the key points of termination. Based on the principle of Sock network programming, the design program terminates the client-server mode (C/S) network communication, and the program instance is studied and analyzed)