增强MultiplexManager,添加异步读取功能,管理每个客户端的读取缓冲区
This commit is contained in:
@@ -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);
|
||||
};
|
||||
Reference in New Issue
Block a user