enum DevP2P::Messages::Disconnect::Reason

Defined in:

net/devp2p.cr

Enum Members

DisconnectRequested = 0
TCPSubSystemError = 1
BreachOfProtocol = 2
UselessPeer = 3
TooManyPeers = 4
AlreadyConnected = 5
IncompatibleP2PProtocolVersion = 6
NullNodeIdentity = 7
ClientQuit = 8
UnexpectedIdentityInHandshake = 9
ConnectedToSelf = 10
PingTimeout = 11
Other = 12

Instance Method Summary

Instance methods inherited from class Object

from_rlp(rlp : Bytes) : Tuple(self, UInt32) from_rlp, to_rlp : Bytes to_rlp

Class methods inherited from class Object

from_rlp(rlp : Bytes) : Tuple(self, UInt32) from_rlp

Instance Method Detail

def already_connected? #

[View source]
def breach_of_protocol? #

[View source]
def client_quit? #

[View source]
def connected_to_self? #

[View source]
def disconnect_requested? #

[View source]
def incompatible_p2_p_protocol_version? #

[View source]
def null_node_identity? #

[View source]
def other? #

[View source]
def ping_timeout? #

[View source]
def tcp_sub_system_error? #

[View source]
def too_many_peers? #

[View source]
def unexpected_identity_in_handshake? #

[View source]
def useless_peer? #

[View source]