There is no "best" place. Using the events, you can plug your code when the
component is instanciate or when the user as connected. You select which one
better fit your needs. Having a look at the component source code may help
you take the right decision.
Contribute to the SSL Effort. Visit http://www.overbyte.be/eng/ssl.html
--
[EMAIL PROTECTED]
Author of ICS (Internet Component Suite, freeware)
Author of MidWare (Multi-tier framework, freeware)
http://www.overbyte.be

----- Original Message ----- 
From: "Stefan Paege" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Tuesday, June 06, 2006 3:03 PM
Subject: [twsocket] Using TWSocketThrdServer


> Hi,
> I need to set up a multithreaded TCP Server and thought about using ICS.
> I found an interesting example using the TWSocketThrdServer component
> (ThrdSrvV3.bdsproj). Working through the code I see that the
> OnClientCreate and the OnClientConnect event contain almost identical
> code for the configuration of the client instance. Is this duplication
> necessary? What would be the best place to have this code?
>
> Regards
> -- 
>
>
> Elektronik-Labor Carls GmbH & Co. KG
>
>    Stefan Paege
>
> Fon: +49 5973 9497-23
> Fax: +49 5973 9497-19
> -- 
> 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

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