#include <oskit/net/socket.h>oskit_error_t oskit_socket_shutdown(oskit_socket_t *s, oskit_u32_t how);
The shutdown call causes all or part of a full-duplex connection on the socket s to be shut down.
- s
- The socket which is to be shut down.
- how
- Specifies what is to be disallowed:
- how = 0
- receives
- how = 1
- sends
- how = 2
- sends and receives
Returns 0 on success, or an error code specified in <oskit/error.h>, on error.