in reply to Re^2: Sync messages for chatting peers
in thread Sync messages for chatting peers

I don't do Windows but I believe the usual advice would be to use threads. BrowserUk posted a nice example of a (non-blocking) threaded client at Re: Sockets and threads, oh my!

That client code is 4 years old and I'm not sure if you still need to do the ioctl song and dance to get Windows to give you a non-blocking socket (if you even want one), but the principles should still be relevant.

Replies are listed 'Best First'.
Re^4: Sync messages for chatting peers
by kzle (Novice) on Mar 26, 2010 at 02:14 UTC

    Thanks rowdog,

    BrowserUK's code works fine, again thanks for the patience and guide. I will renew the original code, just in case that someone might would like to.

    Thanks

    Yun