Newsgroups : Borland : borland.public.delphi.internet.winsock : 2007 Oct : Re: OnBeforeCommandHandler - Indy v9

www.cryer.info
Managed Newsgroup Archive

Re: OnBeforeCommandHandler - Indy v9

Subject:Re: OnBeforeCommandHandler - Indy v9
Posted by:"Jamie Dale" (jamie.da..@yahoo.com)
Date:Tue, 30 Oct 2007 22:10:19

Hi Remy

"Remy Lebeau (TeamB)" <no.spam@no.spam.com> wrote in message
news:4727a8d8$1@newsgroups.borland.com...
>
> "Jamie Dale" <jamie.dale@yahoo.com> wrote in message
> news:4727a464$1@newsgroups.borland.com...
>
>> The client demo was demo'ing how to send a command,
>> and receive the response.

The code I showed was written by one of the Indy guys. I simply modifed it
in order to get around a bug which meant that not all responses were being
read.

> The code you have shown is not necessarily the best way to use command
> handlers.  For string-based responses, it is better to use SendCmd()
> instead of WriteLn() and ReadLn() separately:

Replies:

none

In response to:

www.cryer.info
Managed Newsgroup Archive