@@ -39,9 +39,9 @@ use crate::{
39
39
///
40
40
/// ```text
41
41
/// Flags:
42
- /// - T: Lease period if T==1 then the lease period is in seconds else in milliseconds
42
+ /// - T: Lease period if T==1 then the lease period is in seconds otherwise it is in milliseconds
43
43
/// - S: Size params If S==1 then size parameters are exchanged
44
- /// - Z: Extensions If Z==1 then zenoh extensions will follow.
44
+ /// - Z: Extensions If Z==1 then Zenoh extensions will follow.
45
45
///
46
46
/// 7 6 5 4 3 2 1 0
47
47
/// +-+-+-+-+-+-+-+-+
@@ -51,7 +51,7 @@ use crate::{
51
51
/// +---------------+
52
52
/// |zid_len|x|x|wai| (#)(*)
53
53
/// +-------+-+-+---+
54
- /// ~ [u8] ~ -- ZenohID of the sender of the INIT message
54
+ /// ~ [u8] ~ -- ZenohID of the sender of the JOIN message
55
55
/// +---------------+
56
56
/// |x|x|x|x|rid|fsn| \ -- SN/ID resolution (+)
57
57
/// +---------------+ | if Flag(S)==1
@@ -60,13 +60,11 @@ use crate::{
60
60
/// +---------------+
61
61
/// % lease % -- Lease period of the sender of the JOIN message
62
62
/// +---------------+
63
- /// % next_sn % -- Next SN to be sent by the sender of the JOIN(^)
63
+ /// % next_sn % -- Next SN to be sent by the sender of the JOIN message (^)
64
64
/// +---------------+
65
65
/// ~ [JoinExts] ~ -- if Flag(Z)==1
66
66
/// +---------------+
67
67
///
68
- /// If A==1 and S==0 then size parameters are (ie. S flag) are accepted.
69
- ///
70
68
/// (*) WhatAmI. It indicates the role of the zenoh node sending the JOIN message.
71
69
/// The valid WhatAmI values are:
72
70
/// - 0b00: Router
@@ -93,14 +91,6 @@ use crate::{
93
91
///
94
92
/// (^) The next sequence number MUST be compatible with the adverstised Sequence Number resolution
95
93
/// ```
96
- ///
97
-
98
- pub mod flag {
99
- pub const T : u8 = 1 << 5 ; // 0x20 Lease period if T==1 then the lease period is in seconds else in milliseconds
100
- pub const S : u8 = 1 << 6 ; // 0x40 Size params if S==1 then size parameters are advertised
101
- pub const Z : u8 = 1 << 7 ; // 0x80 Extensions if Z==1 then an extension will follow
102
- }
103
-
104
94
#[ derive( Debug , Clone , PartialEq , Eq ) ]
105
95
pub struct Join {
106
96
pub version : u8 ,
@@ -114,6 +104,12 @@ pub struct Join {
114
104
pub ext_shm : Option < ext:: Shm > ,
115
105
}
116
106
107
+ pub mod flag {
108
+ pub const T : u8 = 1 << 5 ; // 0x20 Lease period if T==1 then the lease period is in seconds else in milliseconds
109
+ pub const S : u8 = 1 << 6 ; // 0x40 Size params if S==1 then size parameters are advertised
110
+ pub const Z : u8 = 1 << 7 ; // 0x80 Extensions if Z==1 then an extension will follow
111
+ }
112
+
117
113
// Extensions
118
114
pub mod ext {
119
115
use alloc:: boxed:: Box ;
0 commit comments