Newsgroups : Borland : borland.public.delphi.internet.winsock : 2005 Jul : Simple Get command with TidTCPClient

www.cryer.info
Managed Newsgroup Archive

Simple Get command with TidTCPClient

Subject:Simple Get command with TidTCPClient
Posted by:"Eric" (er..@example.com)
Date:5 Jul 2005 07:17:45

I have Inday 9.0.18.  I am looking at the indy examples in
SendReceiveRecords and see that the client does:
<psudo code>
Connect:
WriteBuffer(<items>);
ReadBuffer(<items>);
Disconnect;

On the server side, the OnExecute event has
<psudo code>
Athread.connection.ReadBuffer(<items>);
Athread.connection.WriteBuffer(<items>);

The OnExecute() on the server gets called and for each
readbuffer/writebuffer from the client.  The sever blocks in the
readbuffer when it receives the readbuffer from the client and
only exits when the client issues the disconnect.

I would like to use this method but slightly modified so I do not
block on the server side (I do not want to rely on the disconnect
as I may have multiple requests from the client.)  How should I
approach this?

-Eric

Replies:

www.cryer.info
Managed Newsgroup Archive