5
0
mirror of https://github.com/cwinfo/yggdrasil-network.github.io.git synced 2024-09-19 16:09:36 +00:00

Update getDHT, add getMulticastInterfaces

This commit is contained in:
Neil Alexander 2018-12-09 12:16:55 +00:00
parent a68792380a
commit ec0dd6f0c5
No known key found for this signature in database
GPG Key ID: A02A2019A2BB0944

View File

@ -102,10 +102,9 @@ The `"request"` field contains a verb that describes which request to perform.
Expects no additional request fields. Expects no additional request fields.
Returns known nodes in the DHT. Returns known nodes in the DHT.
- `last_seen` (`uint32`) contains the number of seconds since the DHT record was last updated - `box_pub_key` (`string`) contains the `EncryptionPublicKey` of the remote node
- `bucket` (`uint8`) contains the ID of the bucket that the DHT record is stored in
- `coords` (`string`) contains the coordinates of the node on the spanning tree - `coords` (`string`) contains the coordinates of the node on the spanning tree
- `peer_only` (`bool`) shows if the node is a peer - `last_seen` (`uint32`) contains the number of seconds since the DHT record was last updated
#### `getPeers` #### `getPeers`
@ -223,3 +222,11 @@ Removes an existing box pub key.
Returns: Returns:
- Zero or more successful `string` box pub keys in the `"removed"` section - Zero or more successful `string` box pub keys in the `"removed"` section
- Zero or more failed `string` box pub keys in the `"not_removed"` section - Zero or more failed `string` box pub keys in the `"not_removed"` section
#### `getMulticastInterfaces`
Expects no additional request fields.
Returns zero or more strings containing the enabled multicast peering interfaces.
If zero strings are returned then it is implied that multicast peering is not allowed on any interface.