摘要: // 并发服务器-线程 #include <stdio.h> #include <strings.h> //bzero #include <unistd.h> //close #include <sys/socket.h> //socket #include <netinet/in.h> //str 阅读全文
posted @ 2023-12-14 21:11 素装写淡定 阅读(15) 评论(0) 推荐(0)
摘要: 1 #include <stdio.h> 2 #include <strings.h> //bzero 3 #include <unistd.h> //close 4 #include <sys/socket.h> //socket 5 #include <netinet/in.h> //struc 阅读全文
posted @ 2023-12-14 21:02 素装写淡定 阅读(8) 评论(0) 推荐(0)
摘要: 1 #include <stdio.h> 2 #include <pthread.h> 3 #include <strings.h> 4 #include <string.h> 5 #include <unistd.h> 6 #include <sys/socket.h> 7 #include <n 阅读全文
posted @ 2023-12-14 20:16 素装写淡定 阅读(29) 评论(0) 推荐(0)
摘要: 1 // 客户端下载文件 2 #include <stdio.h> 3 #include <string.h> 4 #include <unistd.h> 5 #include <arpa/inet.h> 6 #include <netinet/in.h> 7 #include <sys/types 阅读全文
posted @ 2023-12-13 22:56 素装写淡定 阅读(151) 评论(0) 推荐(0)
摘要: #include <stdio.h> #include <string.h> #include <unistd.h> #include <arpa/inet.h> #include <netinet/in.h> int main(int argc, char const *argv[]) { // 阅读全文
posted @ 2023-12-13 22:06 素装写淡定 阅读(29) 评论(0) 推荐(0)
摘要: #include <stdio.h> #include <string.h> #include <unistd.h> #include <arpa/inet.h> #include <netinet/in.h> int main(int argc, char const *argv[]) { // 阅读全文
posted @ 2023-12-13 21:38 素装写淡定 阅读(87) 评论(0) 推荐(0)
摘要: 1 #include <stdio.h> 2 #include <strings.h> //bzero 3 #include <unistd.h> //close 4 #include <sys/socket.h> //socket 5 #include <netinet/in.h> //struc 阅读全文
posted @ 2023-12-13 20:57 素装写淡定 阅读(255) 评论(0) 推荐(0)
摘要: 1 #include <stdio.h> 2 #include <unistd.h> 3 #include <sys/socket.h> 4 #include <netinet/in.h> 5 #include <arpa/inet.h> 6 int main(int argc, char cons 阅读全文
posted @ 2023-12-13 20:16 素装写淡定 阅读(395) 评论(0) 推荐(0)