SYNOPSIS
#include <sys/socket.h>
int getsockname(int s, struct sockaddr *name, socklen_t *namelen);
DESCRIPTION
The
PARAMETERS
- s
-
Is the integer descriptor of the desired socket.
- name
-
Points to a sockaddr structure containing the socket address.
- namelen
-
Points to an integer that states the address length in bytes.
RETURN VALUES
If successful,
- EBADF
-
The parameter s is not a valid descriptor.
- ENOTSOCK
-
The parameter s is not a socket.
- EFAULT
-
name or namelen is an invalid pointer.
- EINVAL
-
The socket has not been bound.
CONFORMANCE
UNIX 98.
MULTITHREAD SAFETY LEVEL
MT-Safe.
PORTING ISSUES
None.
AVAILABILITY
PTC MKS Toolkit for Professional Developers
PTC MKS Toolkit for Professional Developers 64-Bit Edition
PTC MKS Toolkit for Enterprise Developers
PTC MKS Toolkit for Enterprise Developers 64-Bit Edition
SEE ALSO
PTC MKS Toolkit 10.4 Documentation Build 39.