Re: [twsocket] TWSocketServer Client.Shutdown(1) does not destroy it

2007-10-18 Thread Francois Piette
> > Your code does not guarantee that all data will be sent > > to the client. Make sure that ShutDown() is called after > > all data has been delivered to winsock. Something like > > that: > Thanks Arno. But now I'm confused: It was because I was told to call > Shutdown(1) that I used it when c

Re: [twsocket] TWSocketServer Client.Shutdown(1) does not destroy it

2007-10-18 Thread Arno Garrels
DZ-Jay wrote: > On Oct 18, 2007, at 02:35, Arno Garrels wrote: > >> Your code does not guarantee that all data will be sent >> to the client. Make sure that ShutDown() is called after >> all data has been delivered to winsock. Something like >> that: > > Thanks Arno. But now I'm confused: It wa

Re: [twsocket] TWSocketServer Client.Shutdown(1) does not destroy it

2007-10-18 Thread DZ-Jay
On Oct 18, 2007, at 02:35, Arno Garrels wrote: > Your code does not guarantee that all data will be sent > to the client. Make sure that ShutDown() is called after > all data has been delivered to winsock. Something like > that: Thanks Arno. But now I'm confused: It was because I was told to c

Re: [twsocket] TWSocketServer Client.Shutdown(1) does not destroy it

2007-10-17 Thread Arno Garrels
[EMAIL PROTECTED] wrote: > Here's a sample of my code: > > Procedure TMyServer.ClientDataAvailable(Sender: > TObject; Error: Word); > Begin > With (Sender As TMyClient) Do Begin > If (SomethingBadHappened) Then Begin > SendLine('Error!'); > Shutdown(1); > End; > End; > End;

Re: [twsocket] TWSocketServer Client.Shutdown(1) does not destroy it

2007-10-17 Thread [EMAIL PROTECTED]
TECTED]:[EMAIL PROTECTED] >Sent: 10/17/2007 2:36:00 PM >To : twsocket@elists.org >Cc : >Subject : RE: Re: [twsocket] TWSocketServer Client.Shutdown(1) does not destroy it > >Hello: Its worse... I also noticed that TWSocketClient.TriggerSessionClosed() is triggere

Re: [twsocket] TWSocketServer Client.Shutdown(1) does not destroy it

2007-10-17 Thread [EMAIL PROTECTED]
: >Subject : RE: [twsocket] TWSocketServer Client.Shutdown(1) does not destroy it > >Hello: I just started noticing this behaviour today, and I seem to recall it working differently: When handling the OnClientDataAvailable event, if I determine that the client needs to be di