Node:Who is Connected, Next:Transferring Data, Previous:Accepting Connections, Up:Connections
int getpeername (int socket, struct sockaddr *addr, socklen_t *length-ptr) | Function |
The 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 Socket Addresses, for information about the format of the
address. In some operating systems, The return value is
|