net_util
- Miscellaneous Network FunctionsThe NET_UTIL package is a collection of miscellaneous network functions primarily intended to isolate operating system dependencies in networking code.
netAddrOf()
- translates a host name to the host's IP address.
netHostOf()
- translates an IP address to its host name.
netPortOf()
- translates a service name to its server port.
netServerOf()
- translates a server port to its service name.
net_util.c
net_util.h
(See libnet
for the
complete source, including support routines and build files.)