> > To send a FIN to the remote site, you have to call Shutdown, not Close. > > When the remote acknoledge > > the end of connection, you get the OnSessionClosed event triggered.
> Thanks for Francois.Following your words,when the server don't call the > 'shutdown()',does it mean that the second FIN can't be sent to client,even > if it has received the client's FIN? Either party (client or server) can call Shutdown to gracefully terminate the connection. Winsock does the sequence you described and both parties receive the OnSessionClosed event. -- Contribute to the SSL Effort. Visit http://www.overbyte.be/eng/ssl.html -- [EMAIL PROTECTED] Author of ICS (Internet Component Suite, freeware) Author of MidWare (Multi-tier framework, freeware) http://www.overbyte.be -- To unsubscribe or change your settings for TWSocket mailing list please goto http://www.elists.org/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be