My program has 3 threads:
1. the main thread of execution
2. A thread to listen on a port
3. A Session thread (multiple)
I want to be able to pass a socket object from my thread listening on the port to the main thread of execution, which then chooses which session thread to manage the socket.
Is there anyway of sending the socket to the main thread of execution, whilst keep the thread listening on the port with a new socket Alive?