Perl Programming/Keywords/getpeername

Previous: getnetent Keywords Next: getpgrp

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);
Previous: getnetent Keywords Next: getpgrp
Category:Book:Perl Programming#Keywords/getpeername%20
Category:Book:Perl Programming