|
|
#include <sys/types.h> #include <netinet/in.h>u_long htonl(hostlong); u_long hostlong;
u_short htons(hostshort); u_short hostshort;
u_long ntohl(netlong); u_long netlong;
u_short ntohs(netshort); u_short netshort;
These routines are most often used in conjunction with Internet addresses and ports as returned by gethostbyname(SLIB) and getservent(SLIB).