摘要: # 端口复用 阅读全文
posted @ 2023-05-11 15:21 WTSRUVF 阅读(31) 评论(0) 推荐(0) 编辑
摘要: /* 多线程实现并发服务器 主线程负责接收 子线程负责处理 */ #include <stdio.h> #include <arpa/inet.h> #include <string.h> #include <stdlib.h> #include <sys/types.h> #include <un 阅读全文
posted @ 2023-05-11 11:23 WTSRUVF 阅读(23) 评论(0) 推荐(0) 编辑
摘要: # server /* 多进程实现并发服务器 主进程负责接收 子进程负责处理 */ #include <stdio.h> #include <arpa/inet.h> #include <string.h> #include <stdlib.h> #include <sys/types.h> #in 阅读全文
posted @ 2023-05-11 11:23 WTSRUVF 阅读(15) 评论(0) 推荐(0) 编辑