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

Method onSend

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

Source from the content-addressed store, hash-verified

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:
73 std::atomic<bool> _stop{false};

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected