class DefaultNodeDiscoveryService : NodeDiscoveryService
(source)
<init> |
DefaultNodeDiscoveryService(bootstrapENRList: List<String>, enrStorage: ENRStorage, connector: UdpConnector, coroutineContext: CoroutineContext = Dispatchers.Default) |
coroutineContext |
val coroutineContext: CoroutineContext |
addPeer |
suspend fun addPeer(rlpENR: Bytes): Unit |
start |
Starts the node discovery service. suspend fun start(): Unit |
terminate |
Stops the node discovery service. suspend fun terminate(): Unit |
open |
Creates a new discovery service, generating the node ENR and configuring the UDP connector. fun open(keyPair: KeyPair, localPort: Int, bindAddress: InetSocketAddress = InetSocketAddress(localPort), enrSeq: Long = Instant.now().toEpochMilli(), bootstrapENRList: List<String> = emptyList(), enrStorage: ENRStorage = DefaultENRStorage(), coroutineContext: CoroutineContext = Dispatchers.Default): NodeDiscoveryService
Creates a new discovery service with the UDP service provided. fun open(bootstrapENRList: List<String> = emptyList(), enrStorage: ENRStorage = DefaultENRStorage(), connector: UdpConnector, coroutineContext: CoroutineContext = Dispatchers.Default): NodeDiscoveryService |