devp2p / org.apache.tuweni.devp2p.v5 / NodeDiscoveryService

NodeDiscoveryService

interface NodeDiscoveryService : CoroutineScope (source)

Service executes network discovery, according to discv5 specification (https://github.com/ethereum/devp2p/blob/master/discv5/discv5.md)

Functions

start

Starts the node discovery service.

abstract suspend fun start(): Unit

startAsync

Starts the discovery service, providing a handle to the completion of the start operation.

open fun startAsync(): AsyncCompletion

terminate

Stops the node discovery service.

abstract suspend fun terminate(): Unit

terminateAsync

Stops the node discovery service, providing a handle to the completion of the shutdown operation.

open fun terminateAsync(): AsyncCompletion

Inheritors

DefaultNodeDiscoveryService

class DefaultNodeDiscoveryService : NodeDiscoveryService