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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [ecos-2.0/] [packages/] [net/] [tcpip/] [v2_0/] [doc/] [getpeername.html] - Blame information for rev 510

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 27 unneback
<html>
2
<body>
3
<pre>
4
NAME
5
       getpeername - get name of connected peer
6
 
7
SYNOPSIS
8
       #include &lt;network.h&gt;
9
 
10
       int  getpeername(int  s,  struct sockaddr *name, socklen_t
11
       *namelen);
12
 
13
DESCRIPTION
14
       Getpeername returns the name  of  the  peer  connected  to
15
       socket  s.  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).  The name is truncated if the buffer  provided
19
       is too small.
20
 
21
RETURN VALUE
22
       On  success,  zero is returned.  On error, -1 is returned,
23
       and errno is set appropriately.
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
       ENOTCONN
32
               The socket is not connected.
33
 
34
       ENOBUFS Insufficient resources were available in the  sys-
35
               tem to perform the operation.
36
 
37
 
38
</pre>
39
</body>
40
</html>

powered by: WebSVN 2.1.0

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