Name : perl-Socket-GetAddrInfo
| |
Version : 0.220.0
| Vendor : obs://build_opensuse_org/devel:languages:perl
|
Release : lp155.1.1
| Date : 2024-07-28 22:57:09
|
Group : Unspecified
| Source RPM : perl-Socket-GetAddrInfo-0.220.0-lp155.1.1.src.rpm
|
Size : 0.09 MB
| |
Packager : https://www_suse_com/
| |
Summary : Address-Family Independent Name Resolving Functions
|
Description :
The RFC 2553 functions \'getaddrinfo\' and \'getnameinfo\' provide an abstracted way to convert between a pair of host name/service name and socket addresses, or vice versa. \'getaddrinfo\' converts names into a set of arguments to pass to the \'socket()\' and \'connect()\' syscalls, and \'getnameinfo\' converts a socket address back into its host name/service name pair.
These functions provide a useful interface for performing either of these name resolution operation, without having to deal with IPv4/IPv6 transparency, or whether the underlying host can support IPv6 at all, or other such issues. However, not all platforms can support the underlying calls at the C layer, which means a dilema for authors wishing to write forward-compatible code. Either to support these functions, and cause the code not to work on older platforms, or stick to the older \"legacy\" resolvers such as \'gethostbyname()\', which means the code becomes more portable.
This module attempts to solve this problem, by detecting at compiletime whether the underlying OS will support these functions. If it does not, the module will use pure-perl emulations of the functions using the legacy resolver functions instead. The emulations support the same interface as the real functions, and behave as close as is resonably possible to emulate using the legacy resolvers. See Socket::GetAddrInfo::Emul for details on the limits of this emulation.
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.
|
RPM found in directory: /packages/linux-pbone/ftp5.gwdg.de/pub/opensuse/repositories/devel:/languages:/perl/15.5/x86_64 |