Larry
You can however set the send/receive timeout values by using a ctBlocking
TClientSocket by using a TWinSocketStream. The timeout is specified when
creating the TWinSocketStream. This can also be implemented on the server
side (TServerSocket) and works really well. If you need an example I will
gladly send one to you.
Paul
"Larry Ludden" <no...@net-gate.com> wrote in message
news:85gv1o$55...@bornews.borland.com...
procedure TForm1.Timer1Timer(Sender: TObject);
begin
if not ClientSocket1.Connected then
ClientSocket1.Active := false;
end;
its a rigged way to do it obviously ... and im sure there is a different more secure way to do it
but since nobody else replied to you i thought i would .... later man
freak
Larry
Paul Gertzen <pger...@LiveTechnology.com> wrote in message
news:85h7np$563...@bornews.borland.com...
> I am not sure that there is a way to specify how long a TClientSocket.Open
> method should take. I image it takes as long as it takes to resolve the
name
> (DNS lookup) and to find and connect to the server.
>
> You can however set the send/receive timeout values by using a ctBlocking
> TClientSocket by using a TWinSocketStream. The timeout is specified when
> creating the TWinSocketStream. This can also be implemented on the server
> side (TServerSocket) and works really well. If you need an example I will
> gladly send one to you.
>
> Paul
>
> "Larry Ludden" <no...@net-gate.com> wrote in message
> news:85gv1o$55...@bornews.borland.com...
Paul
"Larry Ludden" <no...@net-gate.com> wrote in message
news:85je0u$6h...@bornews.borland.com...