Re: [twsocket] TWSocketThrdServer - Bogus OnDataAvailable triggeredwhen Closed.

2007-10-03 Thread Wilfried Mestdagh
Hello DZ-Jay, > Close() ultimately calls Shutdown(1) -- so wouldn't it have the same > effect? As I recall not exacly the same. Close calls Shutdown(1) and close the socket. If you call Shutdown(1) the socket will not be immediatly close, but if there is still some data it will be send, and the o

Re: [twsocket] TWSocketThrdServer - Bogus OnDataAvailable triggeredwhen Closed.

2007-10-03 Thread DZ-Jay
On Oct 3, 2007, at 03:53, Arno Garrels wrote: > CloseDelayed won't reenter the event, however to ensure that > last data packets are received properly before the socket is > closed call ShutDown() for a gracefull close in DataSent event > handler. Thanks all for the responses. I have one more q

Re: [twsocket] TWSocketThrdServer - Bogus OnDataAvailable triggeredwhen Closed.

2007-10-03 Thread Arno Garrels
Olivier Sannier wrote: > Isn't it what CloseDelayed is meant for? CloseDelayed won't reenter the event, however to ensure that last data packets are received properly before the socket is closed call ShutDown() for a gracefull close in DataSent event handler. -- Arno Garrels [TeamICS] http://www.

Re: [twsocket] TWSocketThrdServer - Bogus OnDataAvailable triggeredwhen Closed.

2007-10-03 Thread Francois Piette
> > You should call Shutdown to gracefully close the connection. > > If you want to call close, do it using an intermediate custom message. > Isn't it what CloseDelayed is meant for? Yes, of course ! -- [EMAIL PROTECTED] Author of ICS (Internet Component Suite, freeware) Author of MidWare (Multi

Re: [twsocket] TWSocketThrdServer - Bogus OnDataAvailable triggeredwhen Closed.

2007-10-03 Thread Olivier Sannier
Isn't it what CloseDelayed is meant for? Francois Piette wrote: > You should call Shutdown to gracefully close the connection. > If you want to call close, do it using an intermediate custom message. > -- > [EMAIL PROTECTED] > Author of ICS (Internet Component Suite, freeware) > Author of MidWare

Re: [twsocket] TWSocketThrdServer - Bogus OnDataAvailable triggeredwhen Closed.

2007-10-03 Thread Francois Piette
You should call Shutdown to gracefully close the connection. If you want to call close, do it using an intermediate custom message. -- [EMAIL PROTECTED] Author of ICS (Internet Component Suite, freeware) Author of MidWare (Multi-tier framework, freeware) http://www.overbyte.be - Original Mess