Article View: borland.public.cppbuilder.internet.socket
Article #805Re: IO Handlers
From: Vladimir Zhuchko
Date: Fri, 14 Sep 2007 11:10
Date: Fri, 14 Sep 2007 11:10
32 lines
1957 bytes
1957 bytes
Remy Lebeau (TeamB) wrote:
>> Are there any good description-examples how to use IOhandlers?
> Most of the time, you don't need to use them at all. Indy's default
> IOHandler that it creates internally when you don't assign your own is
> sufficient for most operations. The only time you really need to deal with
> them manually is if you want to use SSL or streaming (such as for
> recording/playback)
>
>> Does "Indy in depth" book has such description?
>
> Only to mention that they exsit and which IOHandlers are available for use.
> What exactly do you want to know?
>
I have such piece of code in the
IdThreadComponent1Run(TIdCustomThreadComponent *Sender):
try
{
TCPCommand cmnd(FAddr, FCommand);
TCPClient->Connect();
TCPClient->WriteBuffer(cmnd->c_str(), cmnd.len()); //, true);
// it seems that TCPClient will try to write buffer before real
//connection to the server, how can I avoid this?
}
__finally
{
TCPClient->Disconnect();
Sender->Terminate(); // Stop();
}
Technical Details
Message-ID:
<46ea6c2e$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<46ea2273@newsgroups.borland.com> <46ea3c59$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,c6a51a204b780a2f X-Google-Attributes: gid11508e,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Date: Fri, 14 Sep 2007 15:10:32 +0400 From: Vladimir Zhuchko <zhuchko@jinr.ru> User-Agent: Thunderbird 2.0.0.6 (Windows/20070728) MIME-Version: 1.0 Newsgroups: borland.public.cppbuilder.internet.socket Subject: Re: IO Handlers References: <46ea2273@newsgroups.borland.com> <46ea3c59$1@newsgroups.borland.com> In-Reply-To: <46ea3c59$1@newsgroups.borland.com> Content-Type: text/plain; charset=KOI8-R; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 159.93.195.10 Message-ID: <46ea6c2e$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1189768238 159.93.195.10 (14 Sep 2007 04:10:38 -0700) Lines: 32 Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail