2.2.2.5 DISCONNECT
The DISCONNECT message is sent by a node before terminating an existing connection. After receiving this message, the remote node MUST terminate the connection.
|
|
|
|
|
|
|
|
|
|
1 |
|
|
|
|
|
|
|
|
|
2 |
|
|
|
|
|
|
|
|
|
3 |
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
Message Size |
|||||||||||||||||||||||||||||||
|
Version |
Message Type |
Reserved |
|||||||||||||||||||||||||||||
|
Reason |
Address Count |
Address Offset |
|||||||||||||||||||||||||||||
|
IPv6 Address Array (variable) |
|||||||||||||||||||||||||||||||
|
... |
|||||||||||||||||||||||||||||||
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 set to 0x05.
Reserved (2 bytes): MUST be set to zero and MUST be ignored on receipt.
Reason (1 byte): MUST be one of the following values.
-
Name
Meaning
DISCONNECT_REASON_LEAVING
0x01
The sender is leaving the graph.
DISCONNECT_REASON_LEAST_USEFUL
0x02
The sender is performing graph maintenance, and this is the least useful connection.
DISCONNECT_REASON_APP_DISCONNECT
0x03
The application requested that the connection be disconnected.
Address Count (1 byte): The total number of address entries included in the message.
Address Offset (2 bytes): The offset, in bytes, from the beginning of the message to the first address in the address list.
IPv6 Address Array (variable): An array of IPv6 addresses in PEER_IN6_ADDRESS (section 2.2.1.3) form. This field MUST NOT be present if the Address Count is 0x00.