Boost asio, single TCP server, many clients
I am creating a TCP server that will use boost asio which will accept connections from many clients, receive data, and send confirmations. The thing is that I want to be able to accept all the clients but I want to work only with one at a time. I want all the other transactions to be kept in a queue. Example: Client1 connects Client2 connects Client1 sends data and asks for reply Client2 sends data and asks for reply Client2's request is put into queue Client1's data is read, server replies, end of transaction Client2's request is taken from the queue, server reads data, replies end of