Created
June 18, 2015 07:54
-
-
Save shichao-an/27bb5bebddf78e36198e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <netinet/in.h> | |
uint16_t htons(uint16_t host16bitvalue); | |
uint32_t htonl(uint32_t host32bitvalue); | |
/* Both return: value in network byte order */ | |
uint16_t ntohs(uint16_t net16bitvalue); | |
uint32_t ntohl(uint32_t net32bitvalue); | |
/* Both return: value in host byte order */ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment