Perl Programming/Keywords/getpeername
Appearance
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);