网络通信--htonl(),htons(),ntohl(),ntohs()

头文件: <arpa/inet.h>

h: 主机字节序
n: 网络字节序
s: 16位 2字节
l: 32位 4字节

posted @ 2023-07-06 17:30  await0  阅读(54)  评论(0)    收藏  举报