| 194 | } |
| 195 | |
| 196 | void runIOService() { |
| 197 | { |
| 198 | std::lock_guard<Mutex> lock(_mutex); |
| 199 | _asioThreadId = std::this_thread::get_id(); |
| 200 | } |
| 201 | boost::system::error_code ec; |
| 202 | _ioService.run(ec); |
| 203 | } |
| 204 | }; |
| 205 | |
| 206 | void TCPClientDisconnectListenerImpl::onDisconnected(const Ref<ITCPConnection>& /*connection*/, const Error& error) { |