摘要: #include <stdio.h> #include <sys/socket.h> #include <sys/types.h> #include <time.h> #include <errno.h> #include <signal.h> #include <stdlib.h> #includ 阅读全文
posted @ 2021-12-28 09:06 roverqqq 阅读(114) 评论(0) 推荐(0) 编辑
摘要: #include <stdio.h> #include <sys/shm.h> #include <unistd.h> #include <string.h> int main() { key_t key; // 用于打开指定的共享内存 int shm_id; // 共享内存id char *p; 阅读全文
posted @ 2021-12-28 09:05 roverqqq 阅读(34) 评论(0) 推荐(0) 编辑
摘要: #include <stdio.h> #include <unistd.h> #include <string.h> #include <errno.h> int main() { int fd[2]; char buf[1024]; memset(buf,'\0',sizeof(buf)); pi 阅读全文
posted @ 2021-12-28 09:04 roverqqq 阅读(91) 评论(0) 推荐(0) 编辑
摘要: getsockopt #include <stdio.h> #include <stdlib.h> #include <arpa/inet.h> union val { int i_val; long l_val; struct linger linger_val; struct timeval t 阅读全文
posted @ 2021-12-27 17:40 roverqqq 阅读(37) 评论(0) 推荐(0) 编辑
摘要: 服务端 #include<stdio.h> #include<sys/types.h> #include<sys/socket.h> #include<netinet/in.h> #include<strings.h> #include<sys/select.h> #include<sys/time 阅读全文
posted @ 2021-12-27 17:38 roverqqq 阅读(69) 评论(0) 推荐(0) 编辑
摘要: 服务端 #include <stdio.h> #include <sys/socket.h> #include <sys/types.h> #include <sys/un.h> #define log(fmt,...) printf("%s:%d:"fmt"\n",__func__,__LINE_ 阅读全文
posted @ 2021-12-27 17:37 roverqqq 阅读(199) 评论(0) 推荐(0) 编辑
摘要: 服务端 #include <stdio.h> #include <sys/types.h> #include <sys/socket.h> #include <netinet/in.h> #include <string.h> #define SERVER_PORT 8888 #define BUF 阅读全文
posted @ 2021-12-27 17:35 roverqqq 阅读(89) 评论(0) 推荐(0) 编辑
摘要: 服务端 #include <stdio.h> #include <sys/socket.h> #include <sys/types.h> #include <time.h> #include <errno.h> #include <signal.h> #include <stdlib.h> #in 阅读全文
posted @ 2021-12-27 17:33 roverqqq 阅读(123) 评论(0) 推荐(0) 编辑
摘要: timedatectl set-timezone Asia/Shanghai 阅读全文
posted @ 2021-12-23 16:14 roverqqq 阅读(169) 评论(0) 推荐(0) 编辑
摘要: discover报文分析 offer报文分析 request报文分析 ack报文分析 阅读全文
posted @ 2021-12-21 10:53 roverqqq 阅读(91) 评论(0) 推荐(0) 编辑
点击右上角即可分享
微信分享提示