Thread View: borland.public.cppbuilder.internet.socket
4 messages
4 total messages
Started by Vladimir
Fri, 14 Sep 2007 05:56
IO Handlers
Author: Vladimir
Date: Fri, 14 Sep 2007 05:56
Date: Fri, 14 Sep 2007 05:56
3 lines
916 bytes
916 bytes
Are there any good description-examples how to use IOhandlers? Does "Indy in depth" book has such description?
Re: IO Handlers
Author: Remy Lebeau (TeamB)
Date: Fri, 14 Sep 2007 07:40
Date: Fri, 14 Sep 2007 07:40
19 lines
1562 bytes
1562 bytes
"Vladimir" <zhuchko@jinr.ru> wrote in message news:46ea2273@newsgroups.borland.com... > 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? Gambit
Re: IO Handlers
Author: 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();
}
Re: IO Handlers
Author: Remy Lebeau (TeamB)
Date: Fri, 14 Sep 2007 17:44
Date: Fri, 14 Sep 2007 17:44
11 lines
1179 bytes
1179 bytes
"Vladimir Zhuchko" <zhuchko@jinr.ru> wrote in message news:46ea6c2e$1@newsgroups.borland.com... > 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
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads