tuweni / org.apache.tuweni.rlpx.wire / SubProtocol

SubProtocol

interface SubProtocol (source)

Defines a subprotocol to be used for wire connections

Functions

createHandler

abstract fun createHandler(service: RLPxService): SubProtocolHandler

Creates a new handler for the subprotocol.

id

abstract fun id(): SubProtocolIdentifier

supports

abstract fun supports(subProtocolIdentifier: SubProtocolIdentifier): Boolean

versionRange

abstract fun versionRange(version: Int): Int

Provides the length of the range of message types supported by the subprotocol for a given version

Inheritors

LESSubprotocol

class LESSubprotocol : SubProtocol

The LES subprotocol entry point class, to be used in conjunction with RLPxService