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

Method onHandshaked

examples/ssl_chat_server.cpp:26–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24 }
25
26 void onHandshaked() override
27 {
28 std::cout << "Chat SSL session with Id " << id() << " handshaked!" << std::endl;
29
30 // Send invite message
31 std::string message("Hello from SSL chat! Please send a message or '!' to disconnect the client!");
32 SendAsync(message.data(), message.size());
33 }
34
35 void onDisconnected() override
36 {

Callers

nothing calls this directly

Calls 2

dataMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected