[fpc-pascal] Re: Odyssey: SSockets and Threads.

silvioprog silvioprog at gmail.com
Fri Apr 26 18:49:32 CEST 2013


2013/4/26 Michael Schnell <mschnell at lumino.de>

> On 04/25/2013 06:15 PM, silvioprog wrote:
>
>> Yes, OnDisconnect, it works exactly as you explained. But I also have the
>> OnError event, which is useful when the client is terminated by an error
>> (eg. killing the client via Ctrl+Alt+Del). :)
>>
>
> It might be able to detect a certain kind of errors.
>
> Nonetheless, errors only arise when in fact communication is running. A
> socket stays open forever, if no communication is executed at all, thus a
> broken link in between stays undetected.
>
> To detect a broken link you need to do a regular life check communication.


Pefectly. I'm trying to implement it. :)

-- 
Silvio Clécio
My public projects - github.com/silvioprog
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20130426/34c112ee/attachment.html>


More information about the fpc-pascal mailing list