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:Tue, 25 Sep 2007 20:09:04

Thanks Remy,

>> 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.
>
> So what's the problem?  On the server side, simply call
> ASender.SendReply()
> to send the response manually before then sending the data as needed.

Well, currently I set up the server to send the response automatically - I
have configured a test response directly in the server properties (using
object inspector).
So,  All I need to do is to get the CommandHandler to send the appropriate
data from the server (a stream) to the client.


> the client side, after SendCmd() exits, if the response indicates a
> success
> from the server then read the additional data as needed.
>

That's the bit I don't understand.  what does "read the additional data as
needed"
mean?  That's a bit too vague for me - sorry about that.

kindest regards

Replies:

In response to:

www.cryer.info
Managed Newsgroup Archive