uuid in crawler pings and pongs
This commit is contained in:
@ -4,23 +4,25 @@ Crawling the network is one possible method for a HostCache to discover currentl
|
||||
|
||||
### Crawler Ping
|
||||
|
||||
The crawler ping is a message sent in a signed datagram to the target ultrapeer. It contains uncompressed JSON payload with just the message type and version:
|
||||
The crawler ping is a message sent in a signed datagram to the target ultrapeer. It contains uncompressed JSON payload with the message type, version and an UUID:
|
||||
|
||||
```
|
||||
{
|
||||
type: "CrawlerPing",
|
||||
version: 1
|
||||
version: 1,
|
||||
uuid: "asdf-1234-..."
|
||||
}
|
||||
```
|
||||
|
||||
### Crawler Pong
|
||||
|
||||
The ultrapeer responds with the following message, also in a signed datagram. It contains the list of Destinations that it is currently connected to. Since the datagram is limited in size, not all Destinations will be able to fit in it, but that should be fine for the purpose of ultrapeer discovery.
|
||||
The ultrapeer responds with the following message, also in a signed datagram. It contains the list of Destinations that it is currently connected to. Since the datagram is limited in size, not all Destinations will be able to fit in it, but that should be fine for the purpose of ultrapeer discovery. The "uuid" field must match that of the CrawlerPing.
|
||||
|
||||
```
|
||||
{
|
||||
type: "CrawlerPong",
|
||||
version: 1,
|
||||
uuid: "asdf-1234-...",
|
||||
clientVersion: "MuWire 1.2.3",
|
||||
peers: [ b64.1, b64.2...]
|
||||
}
|
||||
|
Reference in New Issue
Block a user