Perl Programming/Keywords/getpeername

The getpeername keyword

The getpeername function returns the packed socket address from the other end of the SOCKET.

Syntax

  getpeername SOCKET

Examples

   use Socket;

   $hersocketaddress = getpeername(SOCKET);