使用epoll实现Proactor模式(1) 文章目录 使用epoll实现Proactor模式(1) Proactor设计模式 使用Reactor模拟Proactor Asio函数调用过程 参考 下面是一段Asio中典型的代码(忽略错误处理和tcp消息边界相关问题): #include <iostream> #include "asio.hpp" char read_buf[4096]; int main() { asio::io_context ctx; asio::ip::tcp::endpoint endpoint{ asio::ip::make_address("127.0.0.1"), 80