Jump to content

Perl Programming/Keywords/getpeername

From Wikibooks, open books for an open world
Previous: getnetent Keywords Next: getpgrp

The getpeername keyword

[edit | edit source]

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

Syntax

[edit | edit source]
  getpeername SOCKET

Examples

[edit | edit source]
   use Socket;

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