Hello Markus,

> 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
driven.

---
Rgds, Wilfried [TeamICS]
http://www.overbyte.be/eng/overbyte/teamics.html
http://www.mestdagh.biz

-- 
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

Reply via email to