123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172 |
- #ifndef _FASTDDS_TRANSPORT_DESCRIPTOR_INTERFACE_H_
- #define _FASTDDS_TRANSPORT_DESCRIPTOR_INTERFACE_H_
- #ifdef _WIN32
- #include <cstdint>
- #endif
- #include <vector>
- #include <string>
- namespace eprosima{
- namespace fastdds{
- namespace rtps{
- class TransportInterface;
- struct TransportDescriptorInterface
- {
- TransportDescriptorInterface(uint32_t maximumMessageSize, uint32_t maximumInitialPeersRange)
- : maxMessageSize(maximumMessageSize)
- , maxInitialPeersRange(maximumInitialPeersRange)
- {}
- TransportDescriptorInterface(const TransportDescriptorInterface& t)
- : maxMessageSize(t.maxMessageSize)
- , maxInitialPeersRange(t.maxInitialPeersRange)
- {}
- virtual ~TransportDescriptorInterface(){}
-
- virtual TransportInterface* create_transport() const = 0;
-
- virtual uint32_t min_send_buffer_size() const = 0;
-
- virtual uint32_t max_message_size() const { return maxMessageSize; }
- virtual uint32_t max_initial_peers_range() const { return maxInitialPeersRange; }
- uint32_t maxMessageSize;
- uint32_t maxInitialPeersRange;
- };
- }
- }
- }
- #endif
|