Arno, Arno Garrels wrote: > info2004 wrote: > When the server closes the connection OnSessionClosed triggers. > In order to check whether component's internal send buffer is empty > you have property BufferedByteCount. > > If your application has to close the connection when all data > has been sent, you should use method ShutDown(1) from the OnDataSent > event, this makes sure the receiver will receive everything.
I think that we are at cross purposes here. The OnDataSent event looks like it does not fire (sometimes) if the far end (server) closes the connection. Is this true? The server gets the data, then closes the connection, and at my sending end if I solely wait for OnDataSent, sometimes it does not happen, and I time out. I just really want to make sure my assumption is correct before I can put this to bed. Regards, Andy > > > -- > Arno Garrels [TeamICS] > http://www.overbyte.be/eng/overbyte/teamics.html > > > > -- 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