sockbuf::~sockbuf()
flushes output and closes its socket if no other
sockbuf is referencing it and _S_DELETE_DONT_CLOSE flag is not set. It
also deletes its read and write buffers.
In what follows,
s
is a sockbuf
object
how
is of type sockbuf::shuthow
and must be one of
sockbuf::shut_read
, sockbuf::shut_write
, and
sockbuf::shut_readwrite
sockbuf::~sockbuf()
sockbuf
object is referencing it before deleting its read and
write buffers. If the _S_DELETE_DONT_CLOSE flag is set, then the socket
is not closed.
s.close()
sockbuf
objects and _S_DELETE_DONT_CLOSE flag is set.
s.shutdown(how)
how
is sockbuf::shut_read
, shuts down
write if how
is sockbuf::shut_write
, and shuts down both
read and write if how
is sockbuf::shut_readwrite
.