[fpc-pascal] Re: Odyssey: SSockets and Threads.
silvioprog
silvioprog at gmail.com
Thu Apr 25 18:15:03 CEST 2013
2013/4/25 silvioprog <silvioprog at gmail.com>
> 2013/4/25 Michael Schnell <mschnell at lumino.de>
>
>> On 04/25/2013 05:15 PM, silvioprog wrote:
>>
>>>
>>>
>>> Indy has a feature (OnDisconnect property) that notifies you when a
>>> client is not online.
>>>
>>
>> Nope.
>>
>> It notifies you when the other site actively and successfully does a
>> disconnect and your site correctly understands the notification. Not
>> correctly communicated aborts stay undetected.
>>
>> -Michael
>>
>
> I'll write an example for you to test, please wait ...
>
In attached.
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). :)
--
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/20130425/fa8cdd55/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sktcomp.zip
Type: application/zip
Size: 2122 bytes
Desc: not available
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20130425/fa8cdd55/attachment.zip>
More information about the fpc-pascal
mailing list