Let me explain why do I (think I) need a thread per client. I have a C++ builder app, with a main form, that has a table with the information of the status of several clients. When some client connects, it instantiates a new Form which is associated to each client. I can view (and drag) this form along the main form. The problem is: when a client is updating it status, on the main form's table, if there is another client doing the same, the table goes crazy. I think I have to use threads in order to introduce some flow control on the mains form's table. Am I thinking straight? Thank you João
-----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Wilfried Mestdagh Sent: sábado, 5 de Abril de 2008 16:27 To: ICS support mailing Subject: Re: [twsocket] small but pertinent doubt Hello João, If it is not in the list then I have to open all example files to see witch one. I know there is an example of running each client in separated thread. But are you sure you need a thread per client ??? --- Rgds, Wilfried [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html http://www.mestdagh.biz Saturday, April 5, 2008, 09:42, João Gonçalves wrote: > Hello, once more thank you for your answer. > I was referring to that list, I can't find the specific example that you > speak. Are you referring to TcpSrv? > Thanks > João > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of Wilfried Mestdagh > Sent: sábado, 5 de Abril de 2008 8:26 > To: ICS support mailing > Subject: Re: [twsocket] small but pertinent doubt > Hello João, > Here http://www.overbyte.be/eng/products/ics.html#ics_apps is a complete > discreption of all example files. > --- > Rgds, Wilfried [TeamICS] > http://www.overbyte.be/eng/overbyte/teamics.html > http://www.mestdagh.biz > Saturday, April 5, 2008, 09:15, João Gonçalves wrote: >> Hello, >> Jus tone more thing: can youn point me to that example? I can't seem to > find >> it:-( >> Thank you, >> João >> -----Original Message----- >> From: [EMAIL PROTECTED] >> [mailto:[EMAIL PROTECTED] On >> Behalf Of Wilfried Mestdagh >> Sent: sábado, 5 de Abril de 2008 0:38 >> To: ICS support mailing >> Subject: Re: [twsocket] small but pertinent doubt >> Hello João, >> As far as I recall is mtSrv an older example with a listening TWSocket >> and creating data-TWSockets for the clients. So the example with >> TWSocketServer is the way to go. >> TWSocketServer is not multithread because it is not needed. It can >> handle thousands of connections in main thread. But if you want you can >> make separate thread for each client or for groups of clients if you >> have for example lengthy code to execute. There is an example with >> TWSocketServer also multitrheaded. >> --- >> Rgds, Wilfried [TeamICS] >> http://www.overbyte.be/eng/overbyte/teamics.html >> http://www.mestdagh.biz >> Friday, April 4, 2008, 22:45, João Gonçalves wrote: >>> Hello, thank you for the answer >>> In the application that I developed, taking the base of TcpSrv, I use >>> TWSocketServer, 2 questions: >>> - Is this multithread? >>> - Is it better than MtSRv? >>> Thank you >>> João >>> -----Original Message----- >>> From: [EMAIL PROTECTED] >>> [mailto:[EMAIL PROTECTED] On >>> Behalf Of Wilfried Mestdagh >>> Sent: sexta-feira, 4 de Abril de 2008 8:29 >>> To: ICS support mailing >>> Subject: Re: [twsocket] small but pertinent doubt >>> Hello João, >>> Use TWSocketServer component wich handles all clients by itself. There >>> are some example files. >>> --- >>> Rgds, Wilfried [TeamICS] >>> http://www.overbyte.be/eng/overbyte/teamics.html >>> http://www.mestdagh.biz >>> Thursday, April 3, 2008, 23:17, João Gonçalves wrote: >>>> Hello, >>>> I developed an application in C++ Builder, based on the example TcpSrv. >> It >>>> works very well, for a single client. Im now trying to use several >>> clients, >>>> looking to the documentation, ICS has 2 examples: MtSrv and TnSrv, they >>>> booth say that this should be used for a real world server. My question >>>> (doubt) is: what is more suitable to use? >>>> Thank in advance >>>> João >>> -- >>> To unsubscribe or change your settings for TWSocket mailing list >>> please goto >>> http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket >>> Visit our website at http://www.overbyte.be >> -- >> To unsubscribe or change your settings for TWSocket mailing list >> please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket >> Visit our website at http://www.overbyte.be > -- > To unsubscribe or change your settings for TWSocket mailing list > please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket > Visit our website at http://www.overbyte.be -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be