增强MultiplexManager,添加异步读取功能,管理每个客户端的读取缓冲区

This commit is contained in:
Ayndpa
2025-11-19 19:01:00 +08:00
parent dc3535f8c2
commit 1991cc9a5d
2 changed files with 22 additions and 0 deletions

View File

@@ -34,4 +34,7 @@ private:
boost::asio::io_context& io_context_;
bool& isHost_;
int& localPort_;
std::unordered_map<std::string, std::vector<char>> readBuffers_;
void startAsyncRead(const std::string& id);
};