void xtd::net::sockets::socket::shutdown | ( | xtd::net::sockets::socket_shutdown | how | ) |
Disables sends and receives on a xtd::net::sockets::socket.
how | One of the xtd::net::sockets::socket_shutdown values that specifies the operation that will no longer be allowed. |
xtd::net::sockets::socket_exception | An error occurred when attempting to access the socket. |
xtd::object_closed_exception | The xtd::net::sockets::socket has been closed. |
Value | Description |
---|---|
xtd::net::sockets::socket_shutdown::send | Disable sending on this xtd::net::sockets::socket. |
xtd::net::sockets::socket_shutdown::receive | Disable receiving on this xtd::net::sockets::socket. |
xtd::net::sockets::socket_shutdown::both | Disable both sending and receiving on this xtd::net::sockets::socket. |