Cover V01, I01
Article
Listing 1
Listing 2
Listing 3
Sidebar 1
Table 1
Table 2

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)