Skip to content
This repository has been archived by the owner on Apr 24, 2023. It is now read-only.

Commit

Permalink
modify reason code
Browse files Browse the repository at this point in the history
  • Loading branch information
sasaxie committed Apr 18, 2018
1 parent 6f41dfa commit 130f5a2
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions core/Tron.proto
Original file line number Diff line number Diff line change
Expand Up @@ -187,21 +187,21 @@ message DynamicProperties {
}

enum ReasonCode {
REQUESTED = 0;
TCP_ERROR = 1;
BAD_PROTOCOL = 2;
USELESS_PEER = 3;
TOO_MANY_PEERS = 4;
DUPLICATE_PEER = 5;
INCOMPATIBLE_PROTOCOL = 6;
NULL_IDENTITY = 7;
PEER_QUITING = 8;
UNEXPECTED_IDENTITY = 9;
LOCAL_IDENTITY = 10;
PING_TIMEOUT = 11;
USER_REASON = 12;
RESET = 16;
UNKNOWN = 255;
REQUESTED = 0x00;
TCP_ERROR = 0x01;
BAD_PROTOCOL = 0x02;
USELESS_PEER = 0x03;
TOO_MANY_PEERS = 0x04;
DUPLICATE_PEER = 0x05;
INCOMPATIBLE_PROTOCOL = 0x06;
NULL_IDENTITY = 0x07;
PEER_QUITING = 0x08;
UNEXPECTED_IDENTITY = 0x09;
LOCAL_IDENTITY = 0x0A;
PING_TIMEOUT = 0x0B;
USER_REASON = 0x10;
RESET = 0x11;
UNKNOWN = 0xFF;
}

message DisconnectMessage {
Expand Down

0 comments on commit 130f5a2

Please sign in to comment.