Everything's done years ago!
Add BUILTIN_TIMEOUT define to project options and use members of
TCustomTimeoutWSocket class.
You'll get an OnTimeout event that is called with the reason (more
precisely saying, socket state) as parameter. It's up to you to handle
this event.
Btw, if you need some additional periodical things, use TIcsThreadTimer
which is designed to be scalable to thousands of timers.
30.01.2018 15:00, twsocket-requ...@lists.elists.org пишет:
Message: 4
Date: Tue, 30 Jan 2018 05:26:45 +0000 (UTC)
From: Allan Fernandes <allan_fernan...@yahoo.co.uk>
To: "twsocket@lists.elists.org" <twsocket@lists.elists.org>
Subject: [twsocket] TWSocket Timeout Property ?
Message-ID: <334596969.3389904.1517290005...@mail.yahoo.com>
Content-Type: text/plain; charset=UTF-8
Hi,
If I try to connect my TWSocket and there is no socket listening on the other
end then the TWSocket's state goes into wsConnecting for a long time. I want to
reduce that Timeout. Which property should I use ?
RegardsAllan
--
A.S.
--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be