Syntax: int getsockname (int s, struct sockaddr *name, int *namelen);
Header: NetLib - sys/socket.h
Sockets - socklib.h
UnixLib - sys/socket.h
Returns: 0 for success, EOF if failed
This call returns the local address that the socket is bound to (if any) in the supplied address block.
C definition SWI definition
|
|
|