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

Commit

Permalink
Merge pull request #6 from tronprotocol/p2pmessage
Browse files Browse the repository at this point in the history
add p2p message type code
  • Loading branch information
CodeNinjaEvan authored Mar 17, 2018
2 parents 2795379 + 00978ae commit 050740d
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions core/Message.proto
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,16 @@ message Capability {
int32 version = 2;
}

enum P2pMessageCode {
HELLO = 0;
DISCONNECT = 1;
PING = 2;
PONG = 3;
GET_PEERS = 4;
PEERS = 5;
USER = 6;
}

enum ReasonCode {
REQUESTED = 0;
TCP_ERROR = 1;
Expand Down

0 comments on commit 050740d

Please sign in to comment.