This layer offers the ability to send/receive string messages encoded in JSON format between a server and multiple clients. The Json layer requires JsonCpp library. This code is - for now - not compatible with Windows
Implements a dynamic-size message send/receive communication using AF/INET sockets
Derives from sockets and implements a thread dedicated to messages reception
Provides a client-acception thread and collects queries from clients
Concurrent-proof queue storing queries
Gives an example of application that runs an instance of TcpServer and answers to client queries
Provides the ability to read the configuration of the server from an external file
A class that interfaces JsonCpp to make it very straightforward to use
The Client program is just for debug. Because the code between client and server is very symetrical in the principle, a smoother client implementation can easily be done using above classes.
- Make the socket class compatible with Windows