MCPcopy Create free account
hub / github.com/chronoxor/CppServer / onDisconnected

Method onDisconnected

examples/ssl_chat_client.cpp:41–51  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected