Re: Multi-Thread vs Win98
- From: "Marco Caspers" <HexorHaxor@xxxxxxxxx>
- Date: 5 Feb 2007 23:51:31 -0800
Beto Neto wrote:
I have a NT Service installed on an Win2003Server with a IdTCPServer.
The client just connect and send info about itselft to validate it
access on my system... In the client application, I have a Timer
that "readln" from the server, to know when the application must be
closed...
Code:
S := IdTCPClient.ReadLn('', 5);
if S = 'DISCONNECT' then
Halt(0);
This might have nothing to do with your code at all.
Perhaps the connection is just timing out on you and dropping the
connection.
Reads do nothing for the connection if no data is available, especially
not server side.
Perhaps you need another timer doing a kind of "keep-alive" by sending
some data to the server and wait explicitly for the reply.
.
- References:
- Multi-Thread vs Win98
- From: Beto Neto
- Re: Multi-Thread vs Win98
- From: Dennis Landi
- Re: Multi-Thread vs Win98
- From: Beto Neto
- Multi-Thread vs Win98
- Prev by Date: Re: A cross-platform vision for Delphi
- Next by Date: Re: Delphi Jobs in Great Britain?
- Previous by thread: Re: Multi-Thread vs Win98
- Next by thread: Popupmenu in a ShowModal form
- Index(es):
Relevant Pages
|