重构MultiplexManager,使用字符串ID替代uint32_t,优化TCPClient和TCPServer的客户端管理
This commit is contained in:
@@ -31,7 +31,7 @@ public:
|
||||
|
||||
private:
|
||||
void start_accept();
|
||||
void start_read(std::shared_ptr<tcp::socket> socket, uint32_t id);
|
||||
void start_read(std::shared_ptr<tcp::socket> socket, std::string id);
|
||||
|
||||
int port_;
|
||||
bool running_;
|
||||
|
||||
Reference in New Issue
Block a user