| www.delorie.com/gnu/docs/glibc/libc_334.html | search |
![]() Buy the book! | |
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
getpeername function returns the address of the socket that
socket is connected to; it stores the address in the memory space
specified by addr and length-ptr. It stores the length of
the address in *length-ptr.
See section 16.3 Socket Addresses, for information about the format of the
address. In some operating systems, getpeername works only for
sockets in the Internet domain.
The return value is 0 on success and -1 on error. The
following errno error conditions are defined for this function:
EBADF
ENOTSOCK
ENOTCONN
ENOBUFS
| webmaster donations bookstore | delorie software privacy |
| Copyright © 2003 by The Free Software Foundation | Updated Jun 2003 |