I have a design problem:
I have two threads, a heartbeat/control thread and a messagehandler thread.
Both are sharing the same socket, however the messageHan
If both threads are client threads, it is a good idea to open two client sockets one to the server for heart beat and another for communication.