将值由主机字节顺序转换为网络字节顺序。
Converts a value from host byte order to network byte order.
将长值由网络字节顺序转换为主机字节顺序。
Converts a number from network byte order to host byte order.
将短值由主机字节顺序转换为网络字节顺序。
Converts an integer value from host byte order to network byte order.
将整数值由主机字节顺序转换为网络字节顺序。
Converts a short value from host byte order to network byte order.
将整数值由网络字节顺序转换为主机字节顺序。
Converts a short value from network byte order to host byte order.
如果可以选择的话,请使用标准库函数来进行字节交换操作,并按照字节在数据文件中存储的顺序进行标准化;网络字节顺序最适合这种工作。
If you have the option, use standard library functions to do byte-swapping operations, and standardize on the order in which bytes are stored in your data files; network byte order is the best.
这些函数在 /usr/include/netinet/in.h 中进行声明并且能够转换网络字节与主机字节之间的顺序值。
These functions are declared in /usr/include/netinet/in.h and convert values between network- and host-byte order.
这些函数在 /usr/include/netinet/in.h 中进行声明并且能够转换网络字节与主机字节之间的顺序值。
These functions are declared in /usr/include/netinet/in.h and convert values between network- and host-byte order.
应用推荐