> What will happen if shutdown(0) and shutdown(1) is called? http://msdn.microsoft.com/en-us/library/ms740481%28VS.85%29.aspx
btw: Call ShutDown from OnDataSent otherwise the remote will miss some data still in TWSocket buffer and not known from winsock. -- [EMAIL PROTECTED] The author of the freeware multi-tier middleware MidWare The author of the freeware Internet Component Suite (ICS) http://www.overbyte.be ----- Original Message ----- From: "Jack" <[EMAIL PROTECTED]> To: "ICS support mailing" <twsocket@elists.org> Sent: Monday, August 11, 2008 5:17 PM Subject: Re: [twsocket] SessionClosed and close/shutdown > Thanks Francois. What will happen if shutdown(0) and shutdown(1) is > called? > Supposed this will only close one direction of the traffic. For > example, if shutdown(1) > is called, the remote socket will still be able to receive data, and is > probably > expecting data. This will trigger OnSessionClosed(), which may lead the > local > application to think that the socket is gone, while it's still supposed to > send > data back. > > On Sun, Aug 10, 2008 at 10:44 PM, Francois PIETTE > <[EMAIL PROTECTED]> wrote: >> Yes, Shutdown at one side will cause session close at the other side. >> Actaully, Shutdown is the way to gracefully close a connection. Shutdown >> send to the other part a close request. The other part respond with a >> close. >> The the initiating part call close. This is really the proper way to >> negociate session end. >> >> -- >> [EMAIL PROTECTED] >> The author of the freeware multi-tier middleware MidWare >> The author of the freeware Internet Component Suite (ICS) >> http://www.overbyte.be >> >> ----- Original Message ----- >> From: "JLIST" <[EMAIL PROTECTED]> >> To: <twsocket@elists.org> >> Sent: Monday, August 11, 2008 12:32 AM >> Subject: [twsocket] SessionClosed and close/shutdown >> >> >>> Hello all, >>> >>> ICS TWSocket only has a SessionClosed event for close of >>> connection. I suppose a socket.close() from the remote side >>> (or local) will trigger this event. I wonder if shutdown(0/1/2) >>> will also trigger the event? For example, a browser using >>> HTTP/1.0 often sends a request then does a shutdown(1). >>> Will in this case the ICS server component get a SessionClosed >>> event? What if it's a shutdown(0) or shutdown(2)? >>> >>> -- >>> Best regards, >>> Jack >>> >>> -- >>> 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 >> >> -- >> 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 >> > -- > 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 -- 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