]> git.karo-electronics.de Git - karo-tx-redboot.git/blob - packages/net/tcpip/v2_0/doc/shutdown.man
Initial revision
[karo-tx-redboot.git] / packages / net / tcpip / v2_0 / doc / shutdown.man
1 NAME
2        shutdown - shut down part of a full-duplex connection
3
4 SYNOPSIS
5        #include <network.h>
6
7        int shutdown(int s, int how);
8
9 DESCRIPTION
10        The shutdown call causes all or part of a full-duplex con-
11        nection on the socket associated with s to be  shut  down.
12        If  how is 0, further receives will be disallowed.  If how
13        is 1, further sends will be disallowed.  If how is 2, fur-
14        ther sends and receives will be disallowed.
15
16 RETURN VALUE
17        On  success,  zero is returned.  On error, -1 is returned,
18        and errno is set appropriately.
19
20 ERRORS
21        EBADF   s is not a valid descriptor.
22
23        ENOTSOCK
24                s is a file, not a socket.
25
26        ENOTCONN
27                The specified socket is not connected.