enum class Protocol
(source)
Subprotocols supported by the hobbits protocol.
code
- the byte identifying the subprotocol
GOSSIP |
Gossip protocol message |
PING |
Ping message |
RPC |
RPC message |
code |
the byte identifying the subprotocol val code: Byte |
fromByte |
Finds a protocol from a byte, or throws an error if no protocol exists for that code. fun fromByte(b: Byte): Protocol |