Hi Eric,

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

I think this is better:

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

This will send all data, telling the other end to signal to close when
received. There is in your case no need to call the Flush method.

mvg, Wilfried

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