tuweni / org.apache.tuweni.devp2p.proxy / ProxyHandler

ProxyHandler

class ProxyHandler : CoroutineScope, SubProtocolHandler (source)

Constructors

<init>

ProxyHandler(coroutineContext: CoroutineContext = Dispatchers.Default, service: SubprotocolService, client: ProxyClient)

Properties

client

val client: ProxyClient

coroutineContext

val coroutineContext: CoroutineContext

service

val service: SubprotocolService

Functions

handle

fun handle(connection: WireConnection, messageType: Int, message: Bytes): AsyncCompletion

handleNewPeerConnection

fun handleNewPeerConnection(connection: WireConnection): AsyncCompletion

stop

fun stop(): AsyncCompletion

Companion Object Properties

logger

val logger: Logger!