Order was feeling a bit messy today, the end of the service under the program to sort out ideas:
1, connected according to the client server IP and port number;
2, the client sends the packets;
3, the server determines what version of the protocol according to the message format;
4, save the client information;
5, the server specified client of the message;