Subject: | Ability to getnameinfo on only host or service name |
At the C level, one or other buffers to getnameinfo() can be NULL, so it
doesn't look up the host or service name. The Perl API has no way to
specify this so you can't, for example, avoid a DNS lookup. This should
be added.
Likely the simplest approach is to add a 3rd argument, taking two extra
constants:
my ( $err, $host, undef ) = getnameinfo $addr, $flags, NIx_NOSERVICE;
my ( $err, undef, $service ) = getnameinfo $addr, $flags, NIx_NOHOST;
--
Paul Evans