OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [ecos-2.0/] [packages/] [net/] [tcpip/] [v2_0/] [doc/] [shutdown.man] - Blame information for rev 1765

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1254 phoenix
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.

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.