tuweni / org.apache.tuweni.hobbits / Protocol

Protocol

enum class Protocol (source)

Subprotocols supported by the hobbits protocol.

Parameters

code - the byte identifying the subprotocol

Enum Values

GOSSIP

Gossip protocol message

PING

Ping message

RPC

RPC message

Properties

code

the byte identifying the subprotocol

val code: Byte

Companion Object Functions

fromByte

Finds a protocol from a byte, or throws an error if no protocol exists for that code.

fun fromByte(b: Byte): Protocol