I've done almost no work involving threaded apps, and only one or two projects using sockets, but it occurs to me that you would be better off having your main program request the report from the client via the thread (i.e. always use your thread to handle the socket comms.).
In reply to Re: sharing a socket between two threads (win32)
by Melly
in thread sharing a socket between two threads (win32)
by danmcb
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |