12 Aug
2011
12 Aug
'11
2:06 p.m.
Hi,
My process uses two threads, a parent thread and a child thread.
The parent thread make a socket server and when a connection request arrives, it creates the child thread which uses this socket to communicate with the client.
My intention was to send commands from the parent thread to child (for its termination) using the this socket...
(I use the C++2011 thread that not allow the thread killing)
Just close the socket from the parent thread, client-thread operations on this socket will fail and throw. You can just terminate the thread if such an error occurs. HTH michi7x7