随笔分类 -  嵌入式Linux

摘要:服务端 /* * 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 路璐 阅读(453) 评论(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 路璐 阅读(301) 评论(0) 推荐(0)
摘要:/* * main.c * 子进程状态改变会发送SIGCHLD信号给父进程 * 此处实现父进程创建并回收多个子进程 * Created on: 2020年3月3日 * Author: LuYonglei */ #include <stdlib.h> #include <stdio.h> #inclu 阅读全文
posted @ 2020-03-03 18:58 路璐 阅读(1630) 评论(0) 推荐(0)
摘要:头文件 /* * MemoryManage.h * * Created on: 2020年2月22日 * Author: LuYonglei */ #ifndef SRC_MEMORYMANAGE_H_ #define SRC_MEMORYMANAGE_H_ #include <stdlib.h> 阅读全文
posted @ 2020-03-02 17:50 路璐 阅读(459) 评论(0) 推荐(0)