@@ -5,30 +5,42 @@ Most repo commands and status reports are Data packets whose Content contains
5
5
``RepoCommandParam `` or ``RepoCommandRes `` structure.
6
6
These Data are issued via Pub-Sub protocol.
7
7
Each ``RepoCommandParam `` and ``RepoCommandRes `` contains
8
- multiple ``ObjectParam `` and ``ObjectResult ``, resp.
8
+ multiple ``ObjParam `` and ``ObjStatus ``, resp.
9
9
These structures are defined as follows:
10
10
11
11
.. code-block :: abnf
12
12
13
- ObjectParam =
13
+ ObjParam =
14
14
Name
15
15
[ForwardingHint]
16
16
[StartBlockId]
17
17
[EndBlockId]
18
18
[RegisterPrefix]
19
19
20
- ObjectResult =
20
+ SyncParam =
21
+ SyncPrefix
22
+ [RegisterPrefix]
23
+ [DataNameDedupe]
24
+ [Reset]
25
+
26
+ ObjStatus =
21
27
Name
22
28
StatusCode
23
29
[InsertNum]
24
30
[DeleteNum]
25
31
32
+ SyncStatus =
33
+ Name
34
+ StatusCode
35
+
26
36
RepoCommandParam =
27
- 1 * (OBJECT-PARAM-TYPE TLV-LENGTH ObjectParam)
37
+ 0* (OBJECT-PARAM-TYPE TLV-LENGTH ObjParam)
38
+ 0* (SYNC-PARAM-TYPE TLV-LENGTH SyncParam)
28
39
29
40
RepoCommandRes =
30
41
StatusCode
31
- 0 * (OBJECT-RESULT-TYPE TLV-LENGTH ObjectResult)
42
+ 0* (OBJECT-RESULT-TYPE TLV-LENGTH ObjStatus)
43
+ 0* (SYNC-RESULT-TYPE TLV-LENGTH SyncStatus)
32
44
33
45
RepoStatQuery =
34
46
RequestNo
@@ -41,6 +53,12 @@ These structures are defined as follows:
41
53
42
54
RegisterPrefix = REGISTER-PREFIX-TYPE TLV-LENGTH Name
43
55
56
+ SyncPrefix = SYNC-PREFIX-TYPE TLV-LENGTH Name
57
+
58
+ DataNameDedupe = SYNC-DATA-NAME-DEDUPE-TYPE TLV-LENGTH ; TLV-LENGTH = 0
59
+
60
+ Reset = SYNC-RESET-TYPE TLV-LENGTH ; TLV-LENGTH = 0
61
+
44
62
StatusCode = STATUS-CODE-TYPE TLV-LENGTH NonNegativeInteger
45
63
46
64
InsertNum = INSERT-NUM-TYPE TLV-LENGTH NonNegativeInteger
@@ -51,29 +69,39 @@ These structures are defined as follows:
51
69
52
70
The type number assignments are as follows:
53
71
54
- +----------------------+----------------------------+--------------------------------+
55
- | type | Assigned number (decimal) | Assigned number (hexadecimal) |
56
- +======================+============================+================================+
57
- | START-BLOCK-ID-TYPE | 204 | 0xCC |
58
- +----------------------+----------------------------+--------------------------------+
59
- | END-BLOCK-ID-TYPE | 205 | 0xCD |
60
- +----------------------+----------------------------+--------------------------------+
61
- | REQUEST-NO-TYPE | 206 | 0xCE |
62
- +----------------------+----------------------------+--------------------------------+
63
- | STATUS-CODE-TYPE | 208 | 0xD0 |
64
- +----------------------+----------------------------+--------------------------------+
65
- | INSERT-NUM-TYPE | 209 | 0xD1 |
66
- +----------------------+----------------------------+--------------------------------+
67
- | DELETE-NUM-TYPE | 210 | 0xD2 |
68
- +----------------------+----------------------------+--------------------------------+
69
- | FORWARDING-HINT-TYPE | 211 | 0xD3 |
70
- +----------------------+----------------------------+--------------------------------+
71
- | REGISTER-PREFIX-TYPE | 212 | 0xD4 |
72
- +----------------------+----------------------------+--------------------------------+
73
- | OBJECT-PARAM-TYPE | 301 | 0x12D |
74
- +----------------------+----------------------------+--------------------------------+
75
- | OBJECT-RESULT-TYPE | 302 | 0x12E |
76
- +----------------------+----------------------------+--------------------------------+
72
+ +----------------------------+----------------------------+--------------------------------+
73
+ | type | Assigned number (decimal) | Assigned number (hexadecimal) |
74
+ +============================+============================+================================+
75
+ | START-BLOCK-ID-TYPE | 204 | 0xCC |
76
+ +----------------------------+----------------------------+--------------------------------+
77
+ | END-BLOCK-ID-TYPE | 205 | 0xCD |
78
+ +----------------------------+----------------------------+--------------------------------+
79
+ | REQUEST-NO-TYPE | 206 | 0xCE |
80
+ +----------------------------+----------------------------+--------------------------------+
81
+ | STATUS-CODE-TYPE | 208 | 0xD0 |
82
+ +----------------------------+----------------------------+--------------------------------+
83
+ | INSERT-NUM-TYPE | 209 | 0xD1 |
84
+ +----------------------------+----------------------------+--------------------------------+
85
+ | DELETE-NUM-TYPE | 210 | 0xD2 |
86
+ +----------------------------+----------------------------+--------------------------------+
87
+ | FORWARDING-HINT-TYPE | 211 | 0xD3 |
88
+ +----------------------------+----------------------------+--------------------------------+
89
+ | REGISTER-PREFIX-TYPE | 212 | 0xD4 |
90
+ +----------------------------+----------------------------+--------------------------------+
91
+ | OBJECT-PARAM-TYPE | 301 | 0x12D |
92
+ +----------------------------+----------------------------+--------------------------------+
93
+ | OBJECT-RESULT-TYPE | 302 | 0x12E |
94
+ +----------------------------+----------------------------+--------------------------------+
95
+ | SYNC-PARAM-TYPE | 401 | 0x191 |
96
+ +----------------------------+----------------------------+--------------------------------+
97
+ | SYNC-RESULT-TYPE | 402 | 0x192 |
98
+ +----------------------------+----------------------------+--------------------------------+
99
+ | SYNC-DATA-NAME-DEDUPE-TYPE | 403 | 0x193 |
100
+ +----------------------------+----------------------------+--------------------------------+
101
+ | SYNC-RESET-TYPE | 404 | 0x194 |
102
+ +----------------------------+----------------------------+--------------------------------+
103
+ | SYNC-PREFIX-TYPE | 405 | 0x195 |
104
+ +----------------------------+----------------------------+--------------------------------+
77
105
78
106
79
107
Status Code Definition
0 commit comments