<div>18.04.2015, 00:38, "Michael Van Canneyt" <michael@freepascal.org>:</div><blockquote type="cite"><p>On Sat, 18 Apr 2015, þÅÒÎÏ× äÍÉÔÒÉÊ wrote:</p><blockquote>š18.04.2015, 00:00, "Michael Van Canneyt" <<a href="mailto:michael@freepascal.org">michael@freepascal.org</a>>:<br /><br />ššššššššOn Fri, 17 Apr 2015, þÅÒÎÏ× äÍÉÔÒÉÊ wrote:<br />ššššššššššššššš17.04.2015, 20:36, "Michael Van Canneyt" <<a href="mailto:michael@freepascal.org">michael@freepascal.org</a>>:<br /><br />ššššššššššššššššššššššOn Fri, 17 Apr 2015, þÅÒÎÏ× äÍÉÔÒÉÊ wrote:<br />šššššššššššššššššššššššššššššalso one small question. will it be possibly to determine whether connection was closed by user or interrupted? and what about events<br />šššššššššššššcalling on<br />šššššššššššššššššššššššššššinterrupts?<br /><br />ššššššššššššššššššššššWe can think about this. The problem with an interrupt is that you don't know when it happens.<br />ššššššššššššššššššššššYou only see it when you try to do something new.<br /><br />ššššššššššššššššššššššMichael.<br /><br />šššššššššššššššI believe that additional boolean argument for BeforeDisconnection event, that will show us if disconnection was caused by interrupt, could be nice<br />šššššššššššššsolution.<br /><br />ššššššššThat is not possible, it would break backwards compatibility.<br /><br />ššššššššMichael.<br /><br />šš<br />šoh, i'm sorry. forgot about it.<br />šmaybe then it's better to add OnInterrupt event?</blockquote><p>When do you want to call such a hypothetical event ? <br />As I said, there is no good way to detect when it happens:<br /><br />Only when you do a new operation and the call returns an error, <br />you will know after examining the exact error (which is an unsure operation) if it was 'interrupted'.<br /><br />Michael.</p></blockquote><div>š</div><div>hmm. okay, got it.</div><div>thanks for such a positive feedback:)</div>