January 2019
Beginner to intermediate
776 pages
19h 58m
English
Here, we take an integer and show how to convert it between network and host byte orders. The ntohl() socket class function converts from the network byte order to host byte order in a long format. Here, n represents network and h represents host; l represents long and s represents short, that is, 16-bit.
Read now
Unlock full access