C++ Socket(Winsock) Example Using Client Server and Multi-Threading
The aim of this C++ tutorial is to demonstrate simple client/server socket communication and multi-threading. This demonstrates basics such as binding, listening and accepting sockets for Servers and connecting sockets for clients. Once the server accepts a socket, a thread is spawned to handle it. This is the simplest C++ socket (blocking) example you can find. Please leave any comments or questions at the end of this tutorial and I will endeavor to answer them.