Next: , Up: Networking Support   [Contents][Index]


10.1 Byte Order Converters

These are the functions that convert integers from host byte order to network byte order (big-endian).

Function: extensions:htonl integer

Converts a 32 bit integer from host byte order to network byte order.

Function: extensions:htons integer

Converts a 16 bit integer from host byte order to network byte order.

Function: extensions:ntohs integer

Converts a 32 bit integer from network byte order to host byte order.

Function: extensions:ntohl integer

Converts a 32 bit integer from network byte order to host byte order.