Very simple C++ example application using TCP sockets for creating server and clients. Compiling and working on both Windows and Unix.
In addition to just basic socket classes, there are simple "GameServer" and "GameClient" class implementations.
GameServer is able to accept new clients, and keeps pinging on active clients.
GameClient connects to the server, and starts replying server's pings.
In main.cpp function user is asked if he wants to start the application as:
- server
- client
- or run server in a separate thread and connect to it as a client in another. (local "singleplayer")