server部分
1,Initialize Winsock. 2,Create a socket. 3,Bind the socket. 4,Listen on the socket for a client. 5,Accept a connection from a client. 6,Receive and send data. 7,Disconnect.
client部分
1,Initialize Winsock. 2,Create a socket. 3,Connect to the server. 4,Send and receive data. 5,Disconnect.
原文:https://www.cnblogs.com/a-s-m/p/12268228.html