next up previous contents index
Next: 8.2.6 listen: listen for Up: 8.2 oskit_socket: Socket Interface Previous: 8.2.4 connect: initiate a

8.2.5 shutdown: shut down part of a full-duplex connection

 

SYNOPSIS

#include <oskit/net/socket.h>

oskit_error_t oskit_socket_shutdown(oskit_socket_t *s, oskit_u32_t how);

DESCRIPTION

The shutdown call causes all or part of a full-duplex connection on the socket s to be shut down.

PARAMETERS

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

Returns 0 on success, or an error code specified in <oskit/error.h>, on error.



University of Utah Flux Research Group