#include "dds/DCPS/Definitions.h"
#include "dds/DCPS/Cached_Allocator_With_Overflow_T.h"
#include "dds/DCPS/debug.h"
#include "ace/Basic_Types.h"
#include "ace/CDR_Base.h"
#include "ace/Synch_Traits.h"
#include "TransportDebug.h"
Go to the source code of this file.
#define GET_CONFIG_DOUBLE_VALUE | ( | CF, | |||
SECT, | |||||
KEY, | |||||
VALUE | ) |
{ \ ACE_TString stringvalue; \ if (CF.get_string_value (SECT, KEY, stringvalue) == -1) \ { \ if (OpenDDS::DCPS::Transport_debug_level > 0) \ { \ ACE_DEBUG ((LM_NOTICE, \ ACE_TEXT ("(%P|%t) NOTICE: \"%s\" is not defined in config ") \ ACE_TEXT ("file - using code default.\n"), \ KEY)); \ } \ } \ else if (stringvalue == ACE_TEXT("")) \ { \ if (OpenDDS::DCPS::Transport_debug_level > 0) \ { \ ACE_DEBUG ((LM_WARNING, \ ACE_TEXT ("(%P|%t) WARNING: \"%s\" is defined in config ") \ ACE_TEXT ("file, but is missing value - using code default.\n"), \ KEY)); \ } \ } \ else \ { \ VALUE = ACE_OS::strtod (stringvalue.c_str (), 0); \ } \ }
Definition at line 126 of file TransportDefs.h.
Referenced by OpenDDS::DCPS::TcpInst::load().
#define GET_CONFIG_STRING_VALUE | ( | CF, | |||
SECT, | |||||
KEY, | |||||
VALUE | ) |
{ \ ACE_TString stringvalue; \ if (CF.get_string_value (SECT, KEY, stringvalue) == -1) \ { \ if (OpenDDS::DCPS::Transport_debug_level > 0) \ { \ ACE_DEBUG ((LM_NOTICE, \ ACE_TEXT ("(%P|%t) NOTICE: \"%s\" is not defined in config ") \ ACE_TEXT ("file - using code default.\n"), \ KEY)); \ } \ } \ else if (stringvalue == ACE_TEXT("")) \ { \ if (OpenDDS::DCPS::Transport_debug_level > 0) \ { \ ACE_DEBUG ((LM_WARNING, \ ACE_TEXT ("(%P|%t) WARNING: \"%s\" is defined in config ") \ ACE_TEXT ("file, but is missing value - using code default.\n"), \ KEY)); \ } \ } \ else \ { \ VALUE = ACE_TEXT_ALWAYS_CHAR(stringvalue.c_str()); \ } \ }
Macro to get the individual configuration value from ACE_Configuration_Heap as string type.
Definition at line 68 of file TransportDefs.h.
Referenced by OpenDDS::DCPS::TcpInst::load(), OpenDDS::DCPS::RtpsUdpInst::load(), OpenDDS::DCPS::MulticastInst::load(), and OpenDDS::DCPS::Service_Participant::load_common_configuration().
#define GET_CONFIG_TIME_VALUE | ( | CF, | |||
SECT, | |||||
KEY, | |||||
VALUE | ) |
{ \ long tv = -1; \ GET_CONFIG_VALUE(CF, SECT, KEY, tv, long); \ if (tv != -1) VALUE.msec(tv); \ }
Macro to get the individual configuration value from ACE_Configuration_Heap as ACE_Time_Value using milliseconds.
Definition at line 158 of file TransportDefs.h.
Referenced by OpenDDS::DCPS::RtpsUdpInst::load(), and OpenDDS::DCPS::MulticastInst::load().
#define GET_CONFIG_TSTRING_VALUE | ( | CF, | |||
SECT, | |||||
KEY, | |||||
VALUE | ) |
{ \ ACE_TString stringvalue; \ if (CF.get_string_value (SECT, KEY, stringvalue) == -1) \ { \ if (OpenDDS::DCPS::Transport_debug_level > 0) \ { \ ACE_DEBUG ((LM_NOTICE, \ ACE_TEXT ("(%P|%t) NOTICE: \"%s\" is not defined in config ") \ ACE_TEXT ("file - using code default.\n"), \ KEY)); \ } \ } \ else if (stringvalue == ACE_TEXT("")) \ { \ if (OpenDDS::DCPS::Transport_debug_level > 0) \ { \ ACE_DEBUG ((LM_WARNING, \ ACE_TEXT ("(%P|%t) WARNING: \"%s\" is defined in config ") \ ACE_TEXT ("file, but is missing value - using code default.\n"), \ KEY)); \ } \ } \ else \ { \ VALUE = stringvalue; \ } \ }
Definition at line 97 of file TransportDefs.h.
Referenced by OpenDDS::DCPS::UdpInst::load(), OpenDDS::DCPS::RtpsUdpInst::load(), OpenDDS::DCPS::MulticastInst::load(), and OpenDDS::DCPS::Service_Participant::load_common_configuration().
#define GET_CONFIG_VALUE | ( | CF, | |||
SECT, | |||||
KEY, | |||||
VALUE, | |||||
TYPE | ) |
{ \ ACE_TString stringvalue; \ if (CF.get_string_value (SECT, KEY, stringvalue) == -1) \ { \ if (OpenDDS::DCPS::Transport_debug_level > 0) \ { \ ACE_DEBUG ((LM_NOTICE, \ ACE_TEXT ("(%P|%t) NOTICE: \"%s\" is not defined in config ")\ ACE_TEXT ("file - using code default.\n"), \ KEY)); \ } \ } \ else if (stringvalue == ACE_TEXT("")) \ { \ if (OpenDDS::DCPS::Transport_debug_level > 0) \ { \ ACE_DEBUG ((LM_WARNING, \ ACE_TEXT ("(%P|%t) WARNING: \"%s\" is defined in config ") \ ACE_TEXT ("file, but is missing value - using code default.\n"), \ KEY)); \ } \ } \ else \ { \ VALUE = static_cast<TYPE>(ACE_OS::atoi (stringvalue.c_str ())); \ } \ }
Macro to get the individual configuration value from ACE_Configuration_Heap and cast to the specific type from integer.
Definition at line 37 of file TransportDefs.h.
Referenced by OpenDDS::DCPS::UdpInst::load(), OpenDDS::DCPS::TransportInst::load(), OpenDDS::DCPS::TcpInst::load(), OpenDDS::DCPS::ShmemInst::load(), OpenDDS::DCPS::RtpsUdpInst::load(), OpenDDS::DCPS::MulticastInst::load(), and OpenDDS::DCPS::Service_Participant::load_common_configuration().
#define RECEIVE_SYNCH ACE_SYNCH_MUTEX |
Guard the allocations for the underlying memory management of the receive processing with the following:
Notice that even we have only one thread for receiving per transport, the underly message blocks would interact with the threads from EndHistoricSamplesMissedSweeper which are different from the receiving threads. Therefore, we cannot use ACE_SYNCH_NULL_MUTEX here.
Definition at line 32 of file TransportDefs.h.