| 39 | } |
| 40 | |
| 41 | void onDisconnected() override |
| 42 | { |
| 43 | std::cout << "Chat SSL client disconnected a session with Id " << id() << std::endl; |
| 44 | |
| 45 | // Wait for a while... |
| 46 | CppCommon::Thread::Sleep(1000); |
| 47 | |
| 48 | // Try to connect again |
| 49 | if (!_stop) |
| 50 | ConnectAsync(); |
| 51 | } |
| 52 | |
| 53 | void onReceived(const void* buffer, size_t size) override |
| 54 | { |
nothing calls this directly
no outgoing calls
no test coverage detected