2.2.1.2 PEER_MESSAGE
Each message that is exchanged between nodes MUST be prefixed by the following structure.
|
|
|
|
|
|
|
|
|
|
1 |
|
|
|
|
|
|
|
|
|
2 |
|
|
|
|
|
|
|
|
|
3 |
|
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Message Size |
|||||||||||||||||||||||||||||||
Version |
Message Type |
Reserved |
Message Size (4 bytes): The total number of bytes in the message.
Version (1 byte): The Peer-to-Peer Graphing Protocol version number. This MUST be set to 0x10 to signify version 1.0.
Message Type (1 byte): MUST be one of the following values.
-
Value
Meaning
0x01
AUTH_INFO
0x02
CONNECT
0x03
WELCOME
0x04
REFUSE
0x05
DISCONNECT
0x06
SOLICIT_NEW
0x07
SOLICIT_TIME
0x08
SOLICIT_HASH
0x09
ADVERTISE
0x0A
REQUEST
0x0B
FLOOD
0x0C
SYNC_END
0x0D
PT2PT
0x0E
ACK
Reserved (2 bytes): MUST be set to zero and ignored on receipt.