[Lazarus] lnet sockets

Bernd prof7bit at gmail.com
Wed Oct 24 14:47:52 CEST 2012


2012/10/24 Antonio Fortuny <a.fortuny at sitasoftware.lu>:

> Connect to server
> send the request
> wait for answer         <<<---------- this is the point
> check answer OR timeout
> disconnect
>
> I can't firgure out where the check for a timeout as the component does not
> implement nor defines any property or method to deal with timeouts.
> The event (that I use) OnReceive does its job

Its all meant to be used completely asynchronously. The easiest way
would be to start a TTimer and when the timer event fires check
whether you have received an answer already or otherwise close the
connection.




More information about the Lazarus mailing list