shutdown(2dn)
NAME
shutdown − shut down a logical link
SYNTAX
shutdown (s,how)
int s,how;
ARGUMENTS
Input Arguments
s Descriptor for the socket associated with the DECnet logical link that you want to shut down.
how Integer specifying how the connection is shut down. If the value of how is 0, further receives are disabled. If the value of how is 1, further sends are disabled. If the value of how is 2, further sends and receives are disabled.
DESCRIPTION
The shutdown call shuts down all or part of a DECnet logical link connection on the socket specified by the argument s.
RETURN VALUE
If the call succeeds, a value of 0 is returned. If the call fails, a value of −1 is returned.
DIAGNOSTICS
[EBADF] The s argument is not a valid descriptor.
[ENOTSOCK] The s argument is a file, not a socket.
[ENOTCONN] The specified socket is not connected.