Download User`s Manual - Community RTI Connext Users

Transcript
15.6 Setting Builtin Transport Properties with the PropertyQosPolicy
properties for the automatically registered builtin
transport plugins */
if (entity->enable() != DDS_RETCODE_OK) {
printf("***Error: failed to enable entity\n");
}
Note:Builtin transport property changes will have no effect after the builtin transport has been registered.
The builtin transports are implicitly registered when (a) the DomainParticipant is enabled, (b) the first
DataWriter/DataReader is created, or (c) you lookup a builtin DataReader, whichever happens first.
15.6 Setting Builtin Transport Properties with the PropertyQosPolicy
The PROPERTY QosPolicy (DDS Extension) (Section 6.5.17 on page 391) allows you to set name/value pairs of data and attach them to an entity, such as a DomainParticipant.
To assign properties, use the add_property() operation:
DDS_ReturnCode_t DDSPropertyQosPolicyHelper::add_property
(DDS_PropertyQosPolicy policy,
const char * name,
const char * value,
DDS_Boolean propagate)
For more information on add_property() and the other operations in the DDSPropertyQosPolicyHelper
class, please see Table 6.57 PropertyQoSPolicyHelper Operations, as well as the API Reference HTML
documentation.
The ‘name’ part of the name/value pairs is a predefined string. The property names for the builtin transports are described in these tables:
l
Table 15.2 Properties for the Builtin UDPv4 Transport
l
Table 15.3 Properties for Builtin UDPv6 Transport
l
Table 15.4 Properties for Builtin Shared-Memory Transport
See also:
l
l
l
Setting the Maximum Gather-Send Buffer Count for UDPv4 and UDPv6 (Section 15.6.1 on
page 762)
Setting the Maximum Gather-Send Buffer Count for UDPv4 and UDPv6 (Section 15.6.1 on
page 762)
Formatting Rules for IPv6 ‘Allow’ and ‘Deny’ Address Lists (Section 15.6.2 on page 763)
Note:
747