Newsgroups : Borland : borland.public.delphi.internet.winsock : 2007 Sep : Re: Indy 9 TPC client/Server and CommandHandlers

www.cryer.info
Managed Newsgroup Archive

Re: Indy 9 TPC client/Server and CommandHandlers

Subject:Re: Indy 9 TPC client/Server and CommandHandlers
Posted by:"RandomAccess" (n..@tellingyou.com)
Date:Mon, 24 Sep 2007 21:09:36

Hello Remy,

Thanks for your reply.

Yes I am using SendCmd and I already know about automatic responses.
This is already working well.
When the server recognizes the command and sends the response,  I then
want it to send any required data (probably a stream) to the client.

This I believe I can do without help.

The client,  on receiving the initial response to SendCmd,  needs to pick up
the
data that will be subsequently sent by the server as a result of the command
sent from the client.

I'm sure I'm missing something simple,  but I cant see what.
I think I need to implement my own IOHandler for the client but
am unsure and if so,  I am unsure how it should look.

Any help would be appreciated.

kindest regards


"Remy Lebeau (TeamB)" <no.spam@no.spam.com> wrote in message
news:46f807b4@newsgroups.borland.com...
>
> "RandomAccess" <Not@TellingYou.com> wrote in message
> news:46f733a3$1@newsgroups.borland.com...
>
>> I am currently looking at the client side,  and I am having some
>> difficulty understanding what my client side code needs to do
>> (after sending a command),  in order to receive the data sent
>> by the server.
>
> Are you using the SendCmd() method?  If not, then you should be.  It
> handles
> the responses automatically.  You can access the data in the LastCmdResult
> property after SendCmd() exits.
>
>
> Gambit

Replies:

In response to:

www.cryer.info
Managed Newsgroup Archive