socket_getnameinfo
module implementing getaddrinfo and getnameinfo
Install
- All systems
-
curl cmd.cat/socket_getnameinfo.sh
- Debian
-
apt-get install libsocket-getaddrinfo-perl
- Ubuntu
-
apt-get install libsocket-getaddrinfo-perl
- Kali Linux
-
apt-get install libsocket-getaddrinfo-perl
- Windows (WSL2)
-
sudo apt-get update
sudo apt-get install libsocket-getaddrinfo-perl
- Raspbian
-
apt-get install libsocket-getaddrinfo-perl
- Dockerfile
- dockerfile.run/socket_getnameinfo
libsocket-getaddrinfo-perl
module implementing getaddrinfo and getnameinfo
Socket::GetAddrInfo provides a Perl implementation of the getaddrinfo and getnameinfo functions as described in RFC 2553. These functions are useful for converting between a pair of host name/service name and socket addresses, or vice versa. This module uses underlying C code to do most of the work if possible, but can also fall back on some mostly-compatible emulation code written in Perl. This means that this module is a fairly portable implementation of these functions. As of Perl version 5.14.0, Perl already supports `getaddrinfo' in core. On such a system, this module simply uses the functions provided by `Socket', and does not need to use its own compiled XS, or pure-perl legacy emulation. As `Socket' in core now provides all the functions also provided by this module, it is likely this may be the last released version of this module. And code currently using this module would be advised to switch to using core `Socket' instead.