These functions are declared in /usr/include/netinet/in.h and convert values between network- and host-byte order.
这些函数在 /usr/include/netinet/in.h 中进行声明并且能够转换网络字节与主机字节之间的顺序值。
The byte ordering is stated in each message, so if a D-BUS message travels over a network to a remote host, it can still be parsed correctly.
字节次序在每个消息中声明,所以如果一个D -BUS消息通过网络传输到远程的主机,它仍可以被正确地识别出来。
Converts a number from network byte order to host byte order.
将长值由网络字节顺序转换为主机字节顺序。
Converts a 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.
将整数值由网络字节顺序转换为主机字节顺序。
Converts a short value from network byte order to host byte order.
将整数值由网络字节顺序转换为主机字节顺序。
应用推荐