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

SubProtocol

interface SubProtocol (source)

Defines a subprotocol to be used for wire connections

Functions

createClient

Creates a new client for the subprotocol.

abstract fun createClient(service: RLPxService!): SubProtocolClient!

createHandler

Creates a new handler for the subprotocol.

abstract fun createHandler(service: RLPxService!): SubProtocolHandler!

getCapabilities

Provides the capabilities supported by the subprotocol.

open fun getCapabilities(): MutableList<SubProtocolIdentifier!>!

id

abstract fun id(): SubProtocolIdentifier!

supports

abstract fun supports(subProtocolIdentifier: SubProtocolIdentifier!): Boolean

versionRange

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

abstract fun versionRange(version: Int): Int