MCPcopy Create free account
hub / github.com/bcndev/bytecoin / on_msg_bytes

Method on_msg_bytes

src/p2p/P2PProtocolBasic.hpp:48–48  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

46 bool handshake_ok() const override { return peer_version != 0; }
47
48 virtual void on_msg_bytes(size_t, size_t) {} // downloaded, uploaded
49 virtual void on_first_message_after_handshake() {} // calling disconnect from here will crash
50 virtual void on_msg_handshake(p2p::Handshake::Request &&) {} // called after some internal processing
51 virtual void on_msg_handshake(p2p::Handshake::Response &&) {} // called after some internal processing

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected