![]() |
![]() ![]() |
![]() |
|
|
getpeername - find the other hend of a socket connection
getpeername SOCKET
Returns the packed sockaddr address of other end of the SOCKET connection.
use Socket; $hersockaddr = getpeername(SOCK); ($port, $iaddr) = unpack_sockaddr_in($hersockaddr); $herhostname = gethostbyaddr($iaddr, AF_INET); $herstraddr = inet_ntoa($iaddr);
If rather than formatting bugs, you encounter substantive content errors in these documents, such as mistakes in the explanations or code, please use the perlbug utility included with the Perl distribution.
![]() |
![]() |
![]() ![]() |
![]() |
![]() |
![]() |
||
![]() |
DOCUMENTATION DOWNLOADS CPAN FAQs MARKETPLACE SEARCH REFERENCE CONTACT US | ||
![]() |
![]() |
Compilation Copyright © 1998-2000 O'Reilly & Associates, Inc.