> friday afternoon I outlined my new approach.
> Before implementing it I'd like to know if packing all creating and closing
> stuff in a dedicated thread (one for all sockets) with a message pump
> is okay (should work if implemented with some care).

Yes, it is OK. BUT make sure your code is executed in the thread's context. It 
is the execution
context which is important, not where the code is. As I already said 3 times, 
you may have a TThread
method which is executed by the main thread (or any other), or have a method of 
some TForm executed
in the context of a worker thread.

> Did I understand the concept correctly now?

I don't know if you distinguish the class TThread and the "execution context" 
of a thread.

Contribute to the SSL Effort. Visit
Author of ICS (Internet Component Suite, freeware)
Author of MidWare (Multi-tier framework, freeware)

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