u_short htons ( short int i );
from host order to network byte order
u_long htonl ( long int i );
from host order to network byte order
short int ntohs ( u_short i );
from network byte order to host order
long int ntohl ( u_long i );
from network byte order to host order