class WireConnectionPeerRepositoryAdapter : WireConnectionRepository
(source)
Class bridging the subprotocols and the connection repository of the RLPx service, updating the Ethereum peer repository with information.
<init> |
Class bridging the subprotocols and the connection repository of the RLPx service, updating the Ethereum peer repository with information. WireConnectionPeerRepositoryAdapter(peerRepository: EthereumPeerRepository) |
peerRepository |
val peerRepository: EthereumPeerRepository |
add |
fun add(wireConnection: WireConnection): String |
addConnectionListener |
fun addConnectionListener(listener: Listener): Unit |
addDisconnectionListener |
fun addDisconnectionListener(listener: Listener): Unit |
asIterable |
fun asIterable(): Iterable<WireConnection> fun asIterable(identifier: SubProtocolIdentifier): Iterable<WireConnection> |
close |
fun close(): Unit |
get |
fun get(id: String): WireConnection? fun get(ethereumConnection: EthereumConnection): WireConnection |
listenToStatus |
fun listenToStatus(conn: WireConnection, status: Status): Unit |