Perl Programming/Keywords/getpeername

Previous: getnetent Keywords Next: getpgrp

The getpeername keyword

edit

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

Syntax

edit
  getpeername SOCKET

Examples

edit
   use Socket;

   $hersocketaddress = getpeername(SOCKET);
Previous: getnetent Keywords Next: getpgrp