tuweni / org.apache.tuweni.devp2p.eth / EthSubprotocol

EthSubprotocol

class EthSubprotocol : SubProtocol (source)

Constructors

<init>

EthSubprotocol(coroutineContext: CoroutineContext = Dispatchers.Default, blockchainInfo: BlockchainInformation, repository: BlockchainRepository, pendingTransactionsPool: TransactionPool, selectionStrategy: (WireConnectionRepository) -> ConnectionSelectionStrategy = ::RandomConnectionSelectionStrategy, listener: (WireConnection, Status) -> Unit = { _, _ -> })

Functions

createClient

fun createClient(service: RLPxService, identifier: SubProtocolIdentifier): SubProtocolClient

createHandler

fun createHandler(service: RLPxService, client: SubProtocolClient): SubProtocolHandler

getCapabilities

fun getCapabilities(): MutableList<SubProtocolIdentifier!>

id

fun id(): SubProtocolIdentifier

supports

fun supports(subProtocolIdentifier: SubProtocolIdentifier): Boolean

Companion Object Properties

ETH62

val ETH62: SubProtocolIdentifier!

ETH63

val ETH63: SubProtocolIdentifier!

ETH64

val ETH64: SubProtocolIdentifier!

ETH65

val ETH65: SubProtocolIdentifier!

ETH66

val ETH66: SubProtocolIdentifier!