]> git.karo-electronics.de Git - karo-tx-redboot.git/blob - packages/net/tcpip/v2_0/doc/getsockname.html
Initial revision
[karo-tx-redboot.git] / packages / net / tcpip / v2_0 / doc / getsockname.html
1 <html>
2 <body>
3 <pre>
4 NAME
5        getsockname - get socket name
6
7 SYNOPSIS
8        #include &lt;network.h&gt;
9
10        int   getsockname(int   s  ,  struct  sockaddr  *  name  ,
11        socklen_t * namelen )
12
13 DESCRIPTION
14        Getsockname returns the current  name  for  the  specified
15        socket.   The  namelen  parameter should be initialized to
16        indicate the amount of  space  pointed  to  by  name.   On
17        return  it  contains  the actual size of the name returned
18        (in bytes).
19
20 RETURN VALUE
21        On success, zero is returned.  On error, -1  is  returned,
22        and  errno  is  set appropriately.  A 0 is returned if the
23        call succeeds, -1 if it fails.
24
25 ERRORS
26        EBADF   The argument s is not a valid descriptor.
27
28        ENOTSOCK
29                The argument s is a file, not a socket.
30
31        ENOBUFS Insufficient resources were available in the  sys-
32                tem to perform the operation.
33
34
35 </pre>
36 </body>
37 </html>