摘要: 接收端: //server //命名管道采用基于连接的可靠传输方式,只能一对一传输 #include <windows.h> #include <iostream> #define BUF_SIZE 1024 using std::cerr; using std::cout; using std:: 阅读全文
posted @ 2020-07-05 19:12 任小七 阅读(479) 评论(0) 推荐(0) 编辑
摘要: 发送端: #define BOOST_DATE_TIME_NO_LIB #include <boost/interprocess/shared_memory_object.hpp> #include <boost/interprocess/mapped_region.hpp> #include <i 阅读全文
posted @ 2020-07-05 18:52 任小七 阅读(323) 评论(0) 推荐(0) 编辑
摘要: libevent版本:libevent-2.0.22-stable 服务端: #include <string.h> #include <errno.h> #include <stdio.h> #include <signal.h> #include <event2/bufferevent.h> # 阅读全文
posted @ 2020-07-05 09:27 任小七 阅读(238) 评论(0) 推荐(0) 编辑