OpenDDS
Snapshot(2023/04/07-19:43)
|
#include <ShmemInst.h>
Public Member Functions | |
virtual int | load (ACE_Configuration_Heap &cf, ACE_Configuration_Section_Key §) |
virtual OPENDDS_STRING | dump_to_str () const |
bool | is_reliable () const |
Does the transport as configured support RELIABLE_RELIABILITY_QOS? More... | |
virtual size_t | populate_locator (OpenDDS::DCPS::TransportLocator &trans_info, ConnectionInfoFlags flags) const |
Populate a transport locator sequence. Return the number of "locators.". More... | |
const std::string & | hostname () const |
const std::string & | poolname () const |
TimeDuration | association_resend_period () const |
![]() | |
const OPENDDS_STRING & | name () const |
void | dump () const |
Diagnostic aid. More... | |
virtual bool | requires_cdr_encapsulation () const |
Does the transport require a CDR-encapsulated data payload? More... | |
DCPS::WeakRcHandle< ICE::Endpoint > | get_ice_endpoint () |
void | rtps_relay_only_now (bool flag) |
void | use_rtps_relay_now (bool flag) |
void | use_ice_now (bool flag) |
virtual void | update_locators (const GUID_t &, const TransportLocatorSeq &) |
virtual void | get_last_recv_locator (const GUID_t &, TransportLocator &) |
virtual void | rtps_relay_address_change () |
ReactorTask_rch | reactor_task () |
EventDispatcher_rch | event_dispatcher () |
void | count_messages (bool flag) |
bool | count_messages () const |
virtual void | append_transport_statistics (TransportStatisticsSequence &) |
void | drop_messages (bool flag) |
void | drop_messages_m (double m) |
void | drop_messages_b (double b) |
bool | should_drop (ssize_t length) const |
bool | should_drop (const iovec iov[], int n, ssize_t &length) const |
![]() | |
virtual | ~RcObject () |
virtual void | _add_ref () |
virtual void | _remove_ref () |
long | ref_count () const |
WeakObject * | _get_weak_object () const |
Public Attributes | |
size_t | pool_size_ |
size_t | datalink_control_size_ |
![]() | |
const OPENDDS_STRING | transport_type_ |
size_t | queue_messages_per_pool_ |
size_t | queue_initial_pools_ |
ACE_UINT32 | max_packet_size_ |
Max size (in bytes) of a packet (packet header + sample(s)) More... | |
size_t | max_samples_per_packet_ |
Max number of samples that should ever be in a single packet. More... | |
ACE_UINT32 | optimum_packet_size_ |
Optimum size (in bytes) of a packet (packet header + sample(s)). More... | |
bool | thread_per_connection_ |
long | datalink_release_delay_ |
size_t | datalink_control_chunks_ |
TimeDuration | fragment_reassembly_timeout_ |
size_t | receive_preallocated_message_blocks_ |
size_t | receive_preallocated_data_blocks_ |
Static Public Attributes | |
static const TimeDuration | default_association_resend_period |
![]() | |
static const long | DEFAULT_DATALINK_RELEASE_DELAY = 10000 |
static const size_t | DEFAULT_DATALINK_CONTROL_CHUNKS = 32u |
Private Member Functions | |
ShmemInst (const std::string &name) | |
TransportImpl_rch | new_impl () |
Private Attributes | |
std::string | hostname_ |
std::string | poolname_ |
TimeDuration | association_resend_period_ |
Friends | |
class | ShmemType |
template<typename T , typename U > | |
RcHandle< T > | OpenDDS::DCPS::make_rch (U const &) |
Additional Inherited Members | |
![]() | |
static OPENDDS_STRING | formatNameForDump (const char *name) |
![]() | |
TransportInst (const char *type, const OPENDDS_STRING &name) | |
virtual | ~TransportInst () |
void | set_port_in_addr_string (OPENDDS_STRING &addr_str, u_short port_number) |
TransportImpl_rch | get_or_create_impl () |
TransportImpl_rch | get_impl () |
![]() | |
RcObject () | |
![]() | |
ACE_SYNCH_MUTEX | lock_ |
bool | shutting_down_ |
Definition at line 20 of file ShmemInst.h.
|
explicitprivate |
Definition at line 24 of file ShmemInst.cpp.
References ACE_OS::getpid(), OpenDDS::DCPS::TransportInst::name(), and poolname_.
|
inline |
Definition at line 45 of file ShmemInst.h.
|
virtual |
Reimplemented from OpenDDS::DCPS::TransportInst.
Definition at line 65 of file ShmemInst.cpp.
References association_resend_period_, datalink_control_size_, OpenDDS::DCPS::TransportInst::dump_to_str(), OpenDDS::DCPS::TransportInst::formatNameForDump(), hostname_, OPENDDS_STRING, pool_size_, poolname_, and OpenDDS::DCPS::TimeDuration::str().
|
inline |
Definition at line 42 of file ShmemInst.h.
|
inlinevirtual |
Does the transport as configured support RELIABLE_RELIABILITY_QOS?
Implements OpenDDS::DCPS::TransportInst.
Definition at line 38 of file ShmemInst.h.
|
virtual |
Overwrite the default configurations with the configuration from the given section in the ACE_Configuration_Heap object.
Reimplemented from OpenDDS::DCPS::TransportInst.
Definition at line 43 of file ShmemInst.cpp.
References ACE_TEXT(), association_resend_period_, datalink_control_size_, GET_CONFIG_STRING_VALUE, GET_CONFIG_TIME_VALUE, GET_CONFIG_VALUE, hostname_, OpenDDS::DCPS::TransportInst::load(), OPENDDS_STRING, and pool_size_.
|
privatevirtual |
Implements OpenDDS::DCPS::TransportInst.
Definition at line 37 of file ShmemInst.cpp.
References OpenDDS::DCPS::rchandle_from().
|
inline |
Definition at line 43 of file ShmemInst.h.
|
virtual |
Populate a transport locator sequence. Return the number of "locators.".
Implements OpenDDS::DCPS::TransportInst.
Definition at line 78 of file ShmemInst.cpp.
References OpenDDS::DCPS::TransportLocator::data, hostname_, OPENDDS_END_VERSIONED_NAMESPACE_DECL, poolname_, and OpenDDS::DCPS::TransportLocator::transport_type.
|
friend |
|
friend |
Definition at line 51 of file ShmemInst.h.
|
private |
Definition at line 59 of file ShmemInst.h.
Referenced by dump_to_str(), and load().
size_t OpenDDS::DCPS::ShmemInst::datalink_control_size_ |
Size (in bytes) of the control area allocated for each data link. This allocation comes out of the shared-memory pool defined by pool_size_. Defaults to 4 kilobytes.
Definition at line 36 of file ShmemInst.h.
Referenced by dump_to_str(), and load().
|
static |
Definition at line 22 of file ShmemInst.h.
|
private |
Definition at line 57 of file ShmemInst.h.
Referenced by dump_to_str(), load(), and populate_locator().
size_t OpenDDS::DCPS::ShmemInst::pool_size_ |
Size (in bytes) of the single shared-memory pool allocated by this transport instance. Defaults to 16 megabytes.
Definition at line 31 of file ShmemInst.h.
Referenced by dump_to_str(), and load().
|
private |
Definition at line 58 of file ShmemInst.h.
Referenced by dump_to_str(), populate_locator(), and ShmemInst().