HP-UX IPv6 Porting Guide (February 2007)

Function Calls Converting IP addresses to Names
getnameinfo(3N)
Chapter 736
NI_NUMERICSERV: If set, getnameinfo() returns only service’s port number.
NI_NUMERICSCOPE: If set, getnameinfo() returns the numeric form of the scope-ID. It is
ignored if the
sa
parameter is not an IPv6 address.
NI_DGRAM: If set, service is a datagram service (SOCK_DGRAM). Default: service is a stream
service (SOCK_STREAM). This distinguishes between services for TCP and UDP that share
port numbers (for example, 512 to 514).