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

Method onReceived

performance/tcp_echo_client.cpp:54–65  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

52 }
53
54 void onReceived(const void* buffer, size_t size) override
55 {
56 _received += size;
57 while (_received >= message_to_send.size())
58 {
59 SendMessage();
60 _received -= message_to_send.size();
61 }
62
63 timestamp_stop = Timestamp::nano();
64 total_bytes += size;
65 }
66
67 void onError(int error, const std::string& category, const std::string& message) override
68 {

Callers

nothing calls this directly

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected