summaryrefslogtreecommitdiff
path: root/node/Packet.hpp
diff options
context:
space:
mode:
authorAdam Ierymenko <adam.ierymenko@gmail.com>2016-08-09 09:34:13 -0700
committerAdam Ierymenko <adam.ierymenko@gmail.com>2016-08-09 09:34:13 -0700
commitbcd05fbdfa7e340ef4df962773bb7c32cf5013c2 (patch)
treea817665afff359490e1df4e776e2e10ea07b6649 /node/Packet.hpp
parent2ba93436077b4f4901db81687df2e03d7ce6c8c5 (diff)
downloadinfinitytier-bcd05fbdfa7e340ef4df962773bb7c32cf5013c2.tar.gz
infinitytier-bcd05fbdfa7e340ef4df962773bb7c32cf5013c2.zip
Chunking of network config replies.
Diffstat (limited to 'node/Packet.hpp')
-rw-r--r--node/Packet.hpp14
1 files changed, 5 insertions, 9 deletions
diff --git a/node/Packet.hpp b/node/Packet.hpp
index dce9f208..9d4c8289 100644
--- a/node/Packet.hpp
+++ b/node/Packet.hpp
@@ -724,7 +724,7 @@ public:
* <[8] 64-bit network ID>
* <[2] 16-bit length of request meta-data dictionary>
* <[...] string-serialized request meta-data>
- * [<[8] 64-bit timestamp of netconf we currently have>]
+ * <[8] 64-bit timestamp of netconf we currently have>
*
* This message requests network configuration from a node capable of
* providing it. If the optional revision is included, a response is
@@ -732,14 +732,10 @@ public:
*
* OK response payload:
* <[8] 64-bit network ID>
- * <[2] 16-bit length of network configuration dictionary field>
- * <[...] network configuration dictionary (or fragment)>
- * [<[4] 32-bit total length of assembled dictionary>]
- * [<[4] 32-bit index of fragment in this reply>]
- *
- * Fields after the dictionary are extensions to support multipart
- * sending of large network configs. If they are not present the
- * sent config must be assumed to be whole.
+ * <[2] 16-bit length of network configuration dictionary chunk>
+ * <[...] network configuration dictionary (may be incomplete)>
+ * <[4] 32-bit total length of assembled dictionary>
+ * <[4] 32-bit index of chunk in this reply>
*
* ERROR response payload:
* <[8] 64-bit network ID>