摘要: 服务端 /* * main.c * 测试udp Socket套接字 单任务服务端代码实现 * Created on: 2020年3月4日 * Author: LuYonglei */ #include <sys/socket.h> #include <arpa/inet.h> #include <u 阅读全文
posted @ 2020-03-04 13:25 路璐 阅读(431) 评论(0) 推荐(0) 编辑
摘要: typedef union bigSmallEnd{ unsigned short a; unsigned char b[2]; }BSE; void testBSE() { BSE test; test.a = 0x0102; if (test.b[0] == (unsigned char) 0x 阅读全文
posted @ 2020-03-04 10:32 路璐 阅读(271) 评论(0) 推荐(0) 编辑