tuweni / org.apache.tuweni.stratum.server / Stratum1EthProxyProtocol / canHandle

canHandle

fun canHandle(initialMessage: String, conn: StratumConnection): Boolean (source)

Checks if the protocol can handle a TCP connection, based on the initial message.

Parameters

initialMessage - the initial message sent over the TCP connection.

conn - the connection itself

Return
true if the protocol can handle this connection