G'day everrrrybody
Never before used TCP/IP components and have a question or 2 on how to use
them properly.
Suppose, a request has to be sent from a client (my app using
TClientSocket) to the server. It has to time out after a certain time
period. Since TClientSocket doesn't have a time out property, do I just:
var
sResponse : String;
TransSocket : TClientSocket;
begin
.....
TransSocket.Socket.SendText('blah');
Sleep(iTimeOut);
sResponse := TransSocket.Socket.ReceiveText;
.....
end;
or am I missing something here?
Any pointers to the light will be greatly appreciated.
Best regards,
Sergei Stenkov
---------------------------------------------------------------------------
New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED]
with body of "unsubscribe delphi"