This project is an example of using Win32 API WSAStartup, socket, bind, listen, accept, recv, send and connect.
- There is one .sln file and two projects in this repository. The project names are server and client respectively.
- server : The server defines the listener socket and binds it to a specific address and port. Listen to and wait for accept client's connection. Finally, receive message from client and reply message.
- client : The client defines the connection socket and connects to the server. Send the prepared message to the server and receive the message from the server. Close the socket and WSACleanup.
- Open the server.exe.
- Open the client.exe.