< Perl Programming < Keywords

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);
This article is issued from Wikibooks. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.