If the reason that you call the Flush method is because you want to be sure
all is sent before closing the socket then you can better call ShutDown(1)

Yes, thats it, it is something like this

Socket.Send(@Data[0], Length(Data));

But I have found that if my data is small enough to fit on sending buffer, it is actually sent, even not calling Flush method, and since where I need flush my data is small I have removed Flush method from my entire code.

Thank you for the replies!

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