TsgcTCPClient › Properties › ReadTimeout
Maximum time in milliseconds the client waits for incoming data before raising a read timeout.
property ReadTimeout: Integer read FReadTimeout write FReadTimeout;
-1 (infinite)
A value of -1 disables the timeout, letting the client block indefinitely while waiting for bytes to arrive. Setting a positive number of milliseconds causes the socket read call to return an error after the specified idle time; combine this with HeartBeat, TCPKeepAlive or WatchDog to detect half-open connections.
oTCP := TsgcTCPClient.Create(nil);
oTCP.Host := 'www.esegece.com';
oTCP.Port := 2053;
oTCP.ReadTimeout := 30000;
oTCP.Active := true;