Article View: borland.public.cppbuilder.internet.socket
Article #4145Re: TIdTCPServer OnExecute event
From: Evandro Dugnani
Date: Wed, 23 Mar 2005 18:23
Date: Wed, 23 Mar 2005 18:23
20 lines
1832 bytes
1832 bytes
Remy Lebeau (TeamB) escreveu: >>"TIdTCPServer OnExecute event" is not the right place to >>get client messages sent.. > > > Actually, that is exactly where you should be reading the client messages > from. > > > Gambit Thanks Gambit. I think now I get it... each client connection will "create" a thread in server that will be in loop until connection be closed... So, I will have same piece of code in different threads (OnExecute event code) with Read() and Write() commands to communication with client obeying a "logical protocol" defined by me... is that right? Evandro
Technical Details
Message-ID:
<4241b3e4@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!newsread.com!newsprint.newsread.com!38.119.100.83.MISMATCH!news-out.nntp.be!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mailReferences:
<424085cd@newsgroups.borland.com> <424096cf$1@newsgroups.borland.com> <42415376$1@newsgroups.borland.com> <4241ac0f$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,2ec4d6e5445fd698 X-Google-Attributes: gid11508e,public X-Google-Language: ENGLISH,ASCII-7-bit Date: Wed, 23 Mar 2005 15:23:17 -0300 From: Evandro Dugnani <edugnani@gmail.com> User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: pt-br, pt MIME-Version: 1.0 Newsgroups: borland.public.cppbuilder.internet.socket Subject: Re: TIdTCPServer OnExecute event References: <424085cd@newsgroups.borland.com> <424096cf$1@newsgroups.borland.com> <42415376$1@newsgroups.borland.com> <4241ac0f$1@newsgroups.borland.com> In-Reply-To: <4241ac0f$1@newsgroups.borland.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Antivirus: avast! (VPS 0512-0, 22/03/2005), Outbound message X-Antivirus-Status: Clean NNTP-Posting-Host: 200.153.139.101 Message-ID: <4241b3e4@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1111602148 200.153.139.101 (23 Mar 2005 10:22:28 -0800) Lines: 20 Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!newsread.com!newsprint.newsread.com!38.119.100.83.MISMATCH!news-out.nntp.be!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail