linux & windows tcp客户端和服务端,发送和接收文件(公网测试通过)
tcp服务端:
#include <stdio.h>
#ifdef WIN32
#include <winsock2.h>
#include <WS2tcpip.h>
#include <Windows.h>
#elif 1
#include <sys/socket.h>
#include <netinet/in.h>
#endif
#include <errno.h>
#include <unistd.h>.
原创
2020-07-07 14:18:10 ·
283 阅读 ·
0 评论