1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
//! The DDSI-RTPS 2.5 wire protocol for rustorb-dds.
//!
//! What is here so far: reading and writing RTPS messages and
//! submessages (DDSI-RTPS 2.5 clauses 8.3 and 9.4, rustorb-dds#3), the
//! UDP transport (9.6.2, rustorb-dds#4), participant discovery (SPDP,
//! 8.5.3, rustorb-dds#5) in [`spdp`] with the PL_CDR helpers in [`pl`],
//! and endpoint discovery and matching (SEDP, 8.5.4, rustorb-dds#6) in
//! [`sedp`], built on the reliable writer and reader of [`reliable`], the
//! message receiver of [`receiver`] and the QoS policies of [`qos`].
//! Changes too large for a datagram are split into DATA_FRAG and put back
//! together by [`frag`] (8.4.14.1, rustorb-dds#18). The Writer Liveliness
//! Protocol (8.4.13, rustorb-dds#19) is in [`wlp`], and the endpoints of
//! the DDS-XTypes TypeLookup service (rustorb-dds#33) in [`typelookup`].
//! The secure participant discovery of DDS Security (DCPSParticipantsSecure,
//! rustorb-dds#69) is in [`spdp_secure`].
//!
//! - [`Message`], [`Header`] and the [`Submessage`] kinds. All submessage
//! kinds of version 2.5 are handled; unknown and vendor-specific ones
//! are kept as [`UnknownSubmessage`] and skipped by receivers.
//! - The basic types: [`Guid`], [`EntityId`], [`SequenceNumber`],
//! [`SequenceNumberSet`], [`Time`], [`Locator`] and so on.
//! - The UDPv4 transport and the default port numbers, in [`udp`]
//! (rustorb-dds#4).
//! - [`ParameterList`] framing. Parameter values and serialized payloads
//! stay as raw octets; PL_CDR and the payload encodings are read by
//! higher layers.
//!
//! ```
//! use rustorb_rtps::*;
//!
//! let mut msg = Message::new(Header::new(VendorId([0x01, 0x02]), GuidPrefix([7; 12])));
//! msg.submessages.push(Submessage::InfoTimestamp(InfoTimestamp {
//! timestamp: Some(Time { seconds: 1, fraction: 0 }),
//! }));
//! msg.submessages.push(Submessage::Data(Data {
//! reader_id: EntityId::UNKNOWN,
//! writer_id: EntityId::user([0, 0, 1], entity_kind::USER_WRITER_NO_KEY),
//! writer_sn: SequenceNumber(1),
//! inline_qos: None,
//! serialized_payload: Some(SerializedPayload {
//! kind: PayloadKind::Data,
//! bytes: vec![0x00, 0x01, 0x00, 0x00, 1, 0, 0, 0].into(),
//! }),
//! non_standard_payload: false,
//! }));
//! let bytes = msg.encode(Endianness::Little).unwrap();
//! assert_eq!(Message::decode(&bytes).unwrap(), msg);
//! ```
//!
//! The user writers and readers built on these are in rustorb-dds.
pub use ;
pub use ;
pub use Octets;
pub use ;
pub use ;
pub use ;
pub use Endianness;