@@ -6,18 +6,19 @@ Submodule box.iproto
6
6
Since :doc: `2.11.0 </release/2.11.0 >`.
7
7
8
8
The ``box.iproto `` submodule provides the ability to work with the network subsystem of Tarantool.
9
- The submodule is important for backward compatibility reason and enables to
9
+ The submodule is important for backward compatibility and enables to
10
10
11
11
* extend the :ref: `binary protocol <box_protocol >` functionality from the Lua libraries
12
- * replace the built-in modules with the foreign ones
13
12
* parse the unknown IPROTO requests
14
13
* send arbitrary IPROTO packets
15
14
* override the behavior of the existing request types in binary protocol
16
15
17
- To make this possible, the submodule exports all IPROTO constants and features to Lua.
16
+ To make this possible, the submodule exports all IPROTO :ref: ` constants < box_iproto-constants >` and features to Lua.
18
17
19
- Exported IPROTO constants and features
20
- --------------------------------------
18
+ .. _box_iproto-constants :
19
+
20
+ IPROTO constants
21
+ ----------------
21
22
22
23
The IPROTO constants in the ``box.iproto `` namespace are written in the upper case without the ``IPROTO_ `` prefix.
23
24
The constants are divided into several types:
@@ -47,7 +48,23 @@ For example:
47
48
box.iproto.raft_key.TERM = 0
48
49
-- ...
49
50
50
- This table lists all the available members and functions of the submodele:
51
+ .. _box_iproto-features :
52
+
53
+ IPROTO features
54
+ ---------------
55
+
56
+ The submodule exports:
57
+
58
+ * the current IPROTO protocol version (:ref: `box.iproto.protocol_version <reference_lua-box_iproto_version >`)
59
+ * the set of IPROTO protocol features supported by the server (:ref: `box.iproto.protocol_features <reference_lua-box_iproto_protocol-features >`)
60
+ * the IPROTO protocol features with the corresponding code (:ref: `box.iproto.feature <reference_lua-box_iproto_feature >`)
61
+
62
+ .. _box_iproto-reference :
63
+
64
+ API reference
65
+ -------------
66
+
67
+ The table lists all available members and functions of the submodule:
51
68
52
69
.. container :: table
53
70
@@ -62,28 +79,37 @@ This table lists all the available members and functions of the submodele:
62
79
- Use
63
80
64
81
* - :doc: `./box_iproto/keys `
65
- - request keys
82
+ - Request keys
66
83
67
84
* - :doc: `./box_iproto/request_types `
68
- - request types
85
+ - Request types
69
86
70
87
* - :doc: `./box_iproto/flags `
71
- - flags from the :ref: `IPROTO_FLAGS <box_protocol-flags >`>` key
88
+ - Flags from the :ref: `IPROTO_FLAGS <box_protocol-flags >`>` key
72
89
73
90
* - :doc: `./box_iproto/ballot `
74
- - keys from the :ref: `IPROTO_BALLOT <box_protocol-ballots >` requests
91
+ - Keys from the :ref: `IPROTO_BALLOT <box_protocol-ballots >` requests
75
92
76
93
* - :doc: `./box_iproto/metadata `
77
- - keys nested in the :ref: `IPROTO_METADATA <internals-iproto-keys-metadata >` key
94
+ - Keys nested in the :ref: `IPROTO_METADATA <internals-iproto-keys-metadata >` key
78
95
79
96
* - :doc: `./box_iproto/raft `
80
- - keys from the ``IPROTO_RAFT* `` requests
97
+ - Keys from the ``IPROTO_RAFT* `` requests
98
+
99
+ * - :doc: `./box_iproto/protocol_version `
100
+ - Current IPROTO protocol version
101
+
102
+ * - :doc: `./box_iproto/protocol_features `
103
+ - The set of supported IPROTO protocol features
104
+
105
+ * - :doc: `./box_iproto/feature `
106
+ - IPROTO protocol features
81
107
82
- * - :doc: `./box_iproto/override `
83
- - Set the IPROTO request handler callbacks
108
+ * - :doc: `./box_iproto/override `
109
+ - Set the IPROTO request handler callbacks
84
110
85
- * - :doc: `./box_iproto/send `
86
- - Send an IPROTO packet over the session's socket
111
+ * - :doc: `./box_iproto/send `
112
+ - Send an IPROTO packet over the session's socket
87
113
88
114
89
115
.. toctree ::
@@ -96,5 +122,8 @@ This table lists all the available members and functions of the submodele:
96
122
box_iproto/ballot
97
123
box_iproto/metadata
98
124
box_iproto/raft
125
+ box_iproto/protocol_version
126
+ box_iproto/protocol_features
127
+ box_iproto/feature
99
128
box_iproto/override
100
129
box_iproto/send
0 commit comments