Introduction - If you have any usage issues, please Google them yourself
TCP/IP communication is basically the use of SOCKET sockets for data communication, and the program is generally divided into two parts: the server and the client.
The first part of the server
Create server socket (create).
2. The server socket is binding (bind) and begins listening.
Accept the connection request from the client.
4. Start data transmission (send/receive).
Close the socket (closesocket).
The second part of the client
Create user socket (create).
2. Connect with the remote server (connect) and create the receiving process if accepted.
3. Start data transmission (send/receive).
Close the socket (closesocket).