Movatterモバイル変換


[0]ホーム

URL:


functions /getpeername
(source,CPAN)
You are viewing the version of this documentation from Perl blead. This is the main development branch of Perl. (git commit5a263ce5be86b98da0b82c8937eb6301bd4e568f)
#getpeername SOCKET

Returns the packed sockaddr address of the other end of the SOCKET connection.

use Socket;my $hersockaddr    = getpeername($sock);my ($port, $iaddr) = sockaddr_in($hersockaddr);my $herhostname    = gethostbyaddr($iaddr, AF_INET);my $herstraddr     = inet_ntoa($iaddr);

Perldoc Browser is maintained by Dan Book (DBOOK). Please contact him via theGitHub issue tracker oremail regarding any issues with the site itself, search, or rendering of documentation.

The Perl documentation is maintained by the Perl 5 Porters in the development of Perl. Please contact them via thePerl issue tracker, themailing list, orIRC to report any issues with the contents or format of the documentation.


[8]ページ先頭

©2009-2026 Movatter.jp