Network-Byte Order Translation

Internet domain ports and addresses are usually specified to calls using the network-byte ordering convention. The following calls translate integers from host- to network-byte order and from network- to host-byte order.

htonl()

htons() ntohl() ntohs()


[Back: Network Address Translation]
[Next: Internet Address Manipulation]