Syntax: int getpeername(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 address that the socket is connected to (if any) in the supplied address block.
C definition SWI definition
|
|
|