2023年11月29日

C语言 主机字节序和网络字节序互换

摘要: #include <stdio.h> #include <arpa/inet.h> int main() { // 10.11.12.13 uint32_t host_ip = 168496141; uint32_t network_ip = htonl(168496141); // 13.12.1 阅读全文

posted @ 2023-11-29 21:18 王景迁 阅读(42) 评论(0) 推荐(0)

导航