Table of Contents
returns
the name of the peer connected to socket The parameter should be initialized
to indicate the amount of space pointed to by On return it contains the
actual size of the name returned (in bytes). The name is truncated if the
buffer provided is too small.
A 0 is returned if the call succeeds,
-1 if it fails.
The call succeeds unless: The argument is not a
valid descriptor. The argument is a file, not a socket. The socket is
not connected. Insufficient resources were available in the system to perform
the operation. The parameter points to memory not in a valid part of
the process address space.
The function call appeared
in
Table of Contents