随笔分类 - CN
摘要:之前尝试过windows下的简单TCP客户端服务器编写,这次尝试下一下Linux环境下的TCP 客户端代码 #include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include <sys/soc
阅读全文
摘要:最近看了下《TCP/IP网络编程》这本书,想自己实现一下TCP通信的客户端和服务器端 下面是源代码 Ser.c #include <stdio.h> #include <winsock2.h> #pragma comment(lib, "ws2_32.lib") struct CustomMessa
阅读全文