interface SubProtocol
(source)
Defines a subprotocol to be used for wire connections
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!, client: SubProtocolClient!): SubProtocolHandler! |
getCapabilities |
Provides the capabilities supported by the subprotocol. open fun getCapabilities(): MutableList<SubProtocolIdentifier!>! |
id |
Provides the identifier of the subprotocol abstract fun id(): SubProtocolIdentifier! |
supports |
Returns true if the subprotocol supports a sub protocol ID. 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 |
EthSubprotocol |
class EthSubprotocol : SubProtocol |
LESSubprotocol |
The LES subprotocol entry point class, to be used in conjunction with RLPxService class LESSubprotocol : SubProtocol |