may92.tar
|
|
|
Table 2: Functions to assist in Internal to Network Byte Ordering
TABLE 2 |
Routine Name |
Description |
htons |
Host order to network order, short (2 bytes, 16 bits) |
htonl |
Host order to network order, long (4 bytes, 32 bits) |
ntohs |
Network order to host order, short (2 bytes, 16 bits) |
ntohl |
Network order to host order, long (4 bytes, 32 bits) |
| |