Article View: borland.public.cppbuilder.internet.socket
Article #4481Re: Send buffer from server to a client
From: Vin�cius
Date: Thu, 27 Jan 2005 17:07
Date: Thu, 27 Jan 2005 17:07
18 lines
1782 bytes
1782 bytes
> Is not there a IdTCPClient1->ReadBuffer(...) ? There is a IdTCPClient1->ReadBuffer(...), but I can't call this in some structure like execute on the server, or an event that set when the buffer has something to read for the client. If exists somethig like this!!! I take a look at "onWork" event but I don't understand how to use it.In TClientSocket there is an event "OnClientRead", where we can read buffers when its something to read. > AThread->Connection->WriteBuffer(buffer, tamanho + 1); ??? This also exists, "AThread->Connection->WriteBuffer()", but only can be called inside the events of the server, or I wrong?? there no exists IdTCPServer->WriteBuffer(), and I don't want to call this every time in a loop, like execute, I want to call this sometimes. thank's
Technical Details
Message-ID:
<41f91ff2@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<41f90c54@newsgroups.borland.com> <41f91223$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,2b30b06ce9be7f64 X-Google-Attributes: gid11508e,public X-Google-Language: ENGLISH,ASCII-7-bit Reply-To: "Vin�cius" <vgalo2000@yahoo.com.br> From: "Vin�cius" <vgalo2000@yahoo.com.br> Newsgroups: borland.public.cppbuilder.internet.socket References: <41f90c54@newsgroups.borland.com> <41f91223$1@newsgroups.borland.com> Subject: Re: Send buffer from server to a client Date: Thu, 27 Jan 2005 15:07:57 -0200 Lines: 20 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2180 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 X-RFC2646: Format=Flowed; Response NNTP-Posting-Host: 200.251.67.44 Message-ID: <41f91ff2@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1106845682 200.251.67.44 (27 Jan 2005 09:08:02 -0800) Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail