You can use ioctl on the socket with FIONBIO. Should make the socket "non-blocking" which allows it to basically continue if there is nothing on the socket. Alternative, use threads, with function pointers (or functors), and let the socket block ;)
Comatose 290 Taboo Programmer Team Colleague
Comatose 290 Taboo Programmer Team Colleague