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

Method onReceived

examples/proto_server.cpp:71–71  ·  view source on GitHub ↗

Protocol implementation

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected