> 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:


you can get access to the socket handle via:

    TClientSocket.TClientWinSocket.SocketHandle


if you know you're on WinSock 2 you can set send and receive timers
via the Winsock API by calling 

    setsockopt()

and passing SO_SNDTIMEO or SO_RCVTIMEO as the optname 

These aren't supported by pre ver 2 MSwin sockets though (if that's an
issue).


-ns

---------------------------------------------------------------------------
    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"

Reply via email to