Article View: borland.public.cppbuilder.internet.socket
Article #4131TIdTCPServer OnExecute event
From: Evandro Dugnani
Date: Tue, 22 Mar 2005 20:54
Date: Tue, 22 Mar 2005 20:54
19 lines
1945 bytes
1945 bytes
Hi everybody,
I have a doubt concerning TIdTCPServer OnExecute event... I've built
simple applications (client and server) to test TIdTCPServer and
TIdTCPClient Indy components.
I actived the server side ("TCPIdServer->Active = True") to listen
client request... so, my client application makes a
"TCPIdClient->Connect()" before reading data sent by server side (using
"TCPIdClient->ReadLn()"), and then the client disconnects
("TCPIdClient->Disconnect()"). I noticed that the OnExecute event in
server side (where my server application side sends a string to client
side) is called n time while client side doesn't disconnect. Is it
normal, or need I set something?
I'd like to keep connection alive while exchange some data between
client and server side.
I'd appreciate any help.
Thanks in advance.
Evandro Dugnani
Technical Details
Message-ID:
<424085cd@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newshosting.com!nx01.iad01.newshosting.com!news-out.nntp.be!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: 11508e,2ec4d6e5445fd698,start X-Google-Attributes: gid11508e,public X-Google-Language: ENGLISH,ASCII-7-bit Date: Tue, 22 Mar 2005 17:54:37 -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: TIdTCPServer OnExecute event 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: <424085cd@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1111524813 200.153.139.101 (22 Mar 2005 12:53:33 -0800) Lines: 19 Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newshosting.com!nx01.iad01.newshosting.com!news-out.nntp.be!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail