Thanks,
Spam Hater
Check the man page of socket()
A common UNIX paradigm is for a process to fork off a child that handles
(let's say) writing to a socket while the parent handles the reading.
Thus if you are running in a UNIX environment, there should be no
problem reading and writing in different threads.
Jon Snader