摘要: 1 #include <stdio.h> 2 #include <stdlib.h> 3 #include <process.h> 4 #include <winsock2.h> 5 #include <windows.h> 6 7 #define BUF_SIZE 1024 8 #define R 阅读全文
posted @ 2019-11-15 16:47 wisdomroc 阅读(154) 评论(0) 推荐(0) 编辑
摘要: 服务器端: #include <stdio.h> #include <stdlib.h> #include <winsock2.h> #define BUF_SIZE 1024 void CALLBACK ReadCompRoutine(DWORD, DWORD, LPWSAOVERLAPPED, 阅读全文
posted @ 2019-11-15 15:18 wisdomroc 阅读(183) 评论(0) 推荐(0) 编辑
摘要: 发送端: #include <stdio.h> #include <string.h> #include <winsock2.h> void ErrorHanding(char *msg); int main(int argc, char *argv[]) { WSADATA wsaData; SO 阅读全文
posted @ 2019-11-15 09:54 wisdomroc 阅读(159) 评论(0) 推荐(0) 编辑