[fpc-pascal] Re: Odyssey: SSockets and Threads.
Michael Schnell
mschnell at lumino.de
Fri Apr 26 09:21:12 CEST 2013
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.
-Michael
More information about the fpc-pascal
mailing list