How chentaotongxue/fast-dds works
Fast DDS is a C++ DDS implementation with an RTPS wire-protocol layer. Its principal workflow is a client creating a participant, publishing typed topic data through a writer, and receiving it through a reader on another participant; RTPS handles discovery and communication over configured transports. The graph also preserves documented API layers and substantial subsystems visible in the tree, including dynamic types, security, shared memory, flow control, statistics, and XML profiles. Most implementation files were not sampled, so internal links are limited to documented relationships or explicit source-index references.
Main entry points: RTPSParticipantImpl.hpp RTPS Participant · DomainParticipantImpl.cpp Domain Participant · SendBuffersManager.cpp Send Buffers · TransportInterface.hpp Transport Layer
Components 21
DDS API
- Domain Participant
src/cpp/fastdds/domain/DomainParticipantImpl.cpp - Topics and Types
src/cpp/fastdds/topic/TopicImpl.cpp - Publisher and Writer
src/cpp/fastdds/publisher/DataWriterImpl.cpp - Subscriber and Reader
src/cpp/fastdds/subscriber/DataReaderImpl.cpp
RTPS Communication
- RTPS Participant
src/cpp/rtps/participant/RTPSParticipantImpl.hpp - Endpoint Discovery
src/cpp/rtps/builtin/BuiltinProtocols.cpp - Writer History
src/cpp/fastdds/publisher/DataWriterHistory.cpp - Reader History
src/cpp/fastdds/subscriber/history/DataReaderHistory.cpp - Flow Control
src/cpp/rtps/flowcontrol/FlowControllerImpl.hpp - Send Buffers
src/cpp/rtps/messages/SendBuffersManager.cpp - Transport Layer
include/fastdds/rtps/transport/TransportInterface.hpp - Shared Memory
src/cpp/rtps/transport/shared_mem/SharedMemManager.hpp - RTPS Security
src/cpp/rtps/security/SecurityManager.cpp
Types and Configuration
- Dynamic Types
src/cpp/fastdds/xtypes/dynamic_types/DynamicDataImpl.cpp - Type Registry
src/cpp/fastdds/xtypes/type_representation/TypeObjectRegistry.cpp - XML Profiles
src/cpp/xmlparser/XMLProfileManager.cpp
Built-in Services
- Type Lookup
src/cpp/fastdds/builtin/type_lookup_service/TypeLookupManager.cpp - Statistics
include/fastdds/statistics/rtps/StatisticsCommon.hpp
Tools
- Discovery Server CLI
tools/fds/server.cpp
Other components
- DDS Application
- Network Peers
Connections 22
- DDS Application → Domain Participant: creates
README.md - DDS Application → Publisher and Writer: publishes through
README.md - DDS Application → Subscriber and Reader: subscribes through
README.md - Publisher and Writer → Topics and Types: publishes topic data
README.md - Subscriber and Reader → Topics and Types: receives topic data
README.md - Domain Participant → RTPS Participant: uses RTPS
- RTPS Participant → Endpoint Discovery: enables discovery
README.md - RTPS Participant → Transport Layer: communicates over
README.md - Transport Layer → Network Peers: sends RTPS
README.md - RTPS Participant → Flow Control: configures
- Flow Control → Send Buffers: queues samples
- Send Buffers → RTPS Participant: initializes from
src/cpp/rtps/messages/SendBuffersManager.cpp - Send Buffers → Transport Layer: sends messages
- Transport Layer → Shared Memory: may use
- RTPS Participant → RTPS Security: may secure
- Topics and Types → Dynamic Types: may use
- Dynamic Types → Type Registry: registers types
- Domain Participant → XML Profiles: loads profiles
- Discovery Server CLI → XML Profiles: loads profiles
tools/fds/server.cpp - Domain Participant → Type Lookup: uses service
- RTPS Participant → Statistics: may report metrics
- Flow Control → Send Buffers: uses controller interface
src/cpp/rtps/flowcontrol/FlowControllerImpl.hpp