> > Waiting for all sockets to close cleanly may be necessary before
> > terminating an application, to ensure continuously streamed data 
> > is not lost.
> I do not see a reason why one must wait in a loop processing 
> messages with calls to sleep()in order to achieve that, that's 
> often a hint to bad design and should be avoided.

I would not use sleep in such a loop, but if Windows is trying to close a
service to reboot, you do need to loop for a few seconds while blocking
the close down request. 


To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be

Reply via email to