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

Method onReceived

examples/proto_client.cpp:69–69  ·  view source on GitHub ↗

Protocol implementation

Source from the content-addressed store, hash-verified

67
68 // Protocol implementation
69 void onReceived(const void* buffer, size_t size) override { receive(buffer, size); }
70 size_t onSend(const void* data, size_t size) override { return SendAsync(data, size) ? size : 0; }
71
72private:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected