Board index » cppbuilder » IO Handlers

IO Handlers


2007-09-14 01:56:33 PM
cppbuilder69
Are there any good description-examples how to use IOhandlers?
Does "Indy in depth" book has such description?
 
 

Re:IO Handlers

"Vladimir" < XXXX@XXXXX.COM >wrote in message
Quote
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)
Quote
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?
Gambit
 

Re:IO Handlers

Remy Lebeau (TeamB) wrote:
Quote
>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();
}
 

{smallsort}

Re:IO Handlers

"Vladimir Zhuchko" < XXXX@XXXXX.COM >wrote in message
Quote
it seems that TCPClient will try to write buffer before real
connection to the server, how can I avoid this?
I do not understand what you are referring to. Please clearify.
Gambit