| 43 | } |
| 44 | |
| 45 | void onDisconnected() override |
| 46 | { |
| 47 | std::cout << "Simple protocol client disconnected a session with Id " << id() << std::endl; |
| 48 | |
| 49 | // Wait for a while... |
| 50 | CppCommon::Thread::Sleep(1000); |
| 51 | |
| 52 | // Try to connect again |
| 53 | if (!_stop) |
| 54 | ConnectAsync(); |
| 55 | } |
| 56 | |
| 57 | void onError(int error, const std::string& category, const std::string& message) override |
| 58 | { |
nothing calls this directly
no outgoing calls
no test coverage detected