摘要:
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
阅读(44)
评论(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
阅读(80)
评论(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
阅读(239)
评论(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
阅读(99)
评论(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
阅读(139)
评论(0)
推荐(0)

浙公网安备 33010602011771号