> after calling shutdown, do I need to poll windows messages?
> If yes, how to do it properly and in such a way that it only
> polls as long as needed?
You have to have a running message pump in the Execute method of the
thread as Arno has showed. In OnSessionClosed you may post a WM_QUIT
message to the pump to terminate thread and destroy socket.
You do not need to pump messages in another place. TWSocket is event
Rgds, Wilfried [TeamICS]
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be