Introduction - If you have any usage issues, please Google them yourself
The TCP stream communication and UDP datagram communication server open service access to network endpoints, based on the IP address and port number, create listening Scoket bind server network endpoints, keep listening state to accept the client' s connection request connection to create a new Scoket (clientScoket), the server can clientScoket the client sends the message and send the message to the client. 2 client to connect to the server, to create a serverScoket according to the client' s network endpoint to establish a connection with the server, the client can get the service end of the message can also send messages to the service side.