tuweni / org.apache.tuweni.rlpx.wire / DisconnectReason

DisconnectReason

class DisconnectReason (source)

Enumeration of all reasons disconnect may happen.

Enum Values

REQUESTED

TCP_ERROR

PROTOCOL_BREACH

USELESS_PEER

TOO_MANY_PEERS

ALREADY_CONNECTED

INCOMPATIBLE_DEVP2P_VERSION

NULL_NODE_IDENTITY_RECEIVED

CLIENT_QUITTING

UNEXPECTED_IDENTITY

CONNECTED_TO_SELF

TIMEOUT

SUBPROTOCOL_REASON

Properties

code

Disconnect reason code

val code: Int

text

Disconnect reason text

val text: String!

Functions

valueOf

Get a disconnect reason for a number code

static fun valueOf(reason: Int): DisconnectReason!