(To summarize java socket programming, one of the two most important problems in network programming is how to accurately locate one or more hosts on the network, and the other is how to reliably and efficiently transmit data after finding hosts. In the TCP/IP protocol, the IP layer primarily serves as the location of the network host, and the route of data transmission. Only one host on the Internet can be determined by the IP address. The TCP layer provides a reliable (tcp) or non reliable (UDP) data transmission mechanism for use, which is the primary goal of network programming, and usually does not need to care about how the IP layer manages data. The prevailing network programming model is the client/server (C/S) architecture. That is, one side of the communication side acts as a server to wait for the client's request and response. Customers apply to the server when they need services. The server usually runs as a guard process all the time, listening to the network port. Once a customer requests, it will start a service process to respond to the customer, and together they will continue to listen to the service port, so that subsequent customers can get services in time.
Summarize java_ Socket Programming.doc)