On Mar 28, 2010, at 07:32, Jon Robertson wrote:

> The TriggerSessionClosed (not sure the exact function without looking it up)
> was not "aware" that OnDataAvailable had already been called for the current
> data.  It was only "aware" that there was data that had not been processed
> and the socket was being closed, so the data "needed" to be processed.

        For accuracy, that's only in TCustomLineWSocket, not on the 
TCustomWSocket base class.  The purpose of TriggerSessionClosed in that class 
is precisely to check the Receive Buffer for "unread" data, when in LineMode.

As you noticed, when you turn off LineMode in your code, it will not re-enter 
OnDataAvailable.  I'm not sure why the distinction at this point.


        DZ-Jay [TeamICS]

To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be

Reply via email to