tuweni / org.apache.tuweni.stratum.server / StratumConnection

StratumConnection

class StratumConnection (source)

Persistent TCP connection using a variant of the Stratum protocol, connecting the client to miners.

Constructors

<init>

Persistent TCP connection using a variant of the Stratum protocol, connecting the client to miners.

StratumConnection(protocols: Array<StratumProtocol>, closeHandle: () -> Unit, sender: (String) -> Unit)

Properties

closeHandle

val closeHandle: () -> Unit

sender

val sender: (String) -> Unit

Functions

close

fun close(): Unit

handleBuffer

fun handleBuffer(buffer: Buffer): Unit

send

fun send(message: String): Unit