See above. Pausing/resuming the socket shouldn't be used, specially if you
have your own worker thread. Just have the socket event handler blocked
waiting for some synchronization object.

You mean blocking the entire message loop?

Yes, indeed. If you don't want any socket event while outside of an exported fDLL function call, then it is enough to block the thread message pump which is only used for socket handling. This would effectively block any socket activity - and of course any event - when not in the context of a called function.

The author of the freeware multi-tier middleware MidWare
The author of the freeware Internet Component Suite (ICS)

To unsubscribe or change your settings for TWSocket mailing list
please goto
Visit our website at

Reply via email to