Re: [twsocket] Shutdown(How: Integer)

2006-11-18 Thread Francois PIETTE
 When do I need, or would I want, to call Shutdown(), and what are the
 ramifications of the different parameters that one can pass it.

You use Shutdown() to initiate a gracefull close of a TCP session. 
Shutdown() send the signal to the remote side to close the connection. The 
remote side see it as a connection gracefully closed by peer. It should the 
close his end of the connection. The peer which initially called SHutdown() 
will then receive the connection close signal.

 I see Shutdown(2) in one of the demo apps, but don't know what 2
 represents.

  { Manifest constants for Shutdown }
  SD_RECEIVE= 0;
  SD_SEND   = 1;
  SD_BOTH   = 2;


--
Contribute to the SSL Effort. Visit http://www.overbyte.be/eng/ssl.html
--
[EMAIL PROTECTED]
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


[twsocket] Shutdown(How: Integer)

2006-11-17 Thread Clay Shannon
When do I need, or would I want, to call Shutdown(), and what are the
ramifications of the different parameters that one can pass it.

 

I see Shutdown(2) in one of the demo apps, but don't know what 2
represents.

The information transmitted is intended only for the person or entity to
which it is addressed and may contain confidential and/or privileged
material.  If the reader of this message is not the intended recipient,
you are hereby notified that your access is unauthorized, and any review,
dissemination, distribution or copying of this message including any
attachments is strictly prohibited.   If you are not the intended
recipient, please contact the sender and delete the material from any
computer.
-- 
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