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

valueOf

static fun valueOf(reason: Int): DisconnectReason! (source)

Get a disconnect reason for a number code

Parameters

reason - Int: the reason code

Return
DisconnectReason!: a matching DisconnectReason