摘要: IP地址 一个IP地址就是一个32位无符号整数。 struct in_addr { uint32_t s_addr; }; TCP/IP为任意整数数据项定义了统一的网络字节顺序(大端字节序)。Unix提供了函数在网络和主机字节顺序间实现转换。 #include <arpa/inet.h> uint3 阅读全文
posted @ 2022-03-30 19:54 Pannnn 阅读(528) 评论(0) 推荐(0)
-->