RTI Connext .Net APIs  Version 6.0.1
DDS::ReceiverPoolQosPolicy Class Reference

Configures threads used by RTI Connext to receive and process data from transports (for example, UDP sockets). More...

#include <managed_infrastructure.h>

Static Public Member Functions

static System::String ^ get_receiverpool_qos_policy_name ()
 Stringified human-readable name for DDS::ReceiverPoolQosPolicy. More...
 

Public Attributes

ThreadSettings_tthread
 Receiver pool thread(s). More...
 
System::Int32 buffer_size
 The receive buffer size. More...
 
System::Int32 buffer_alignment
 The receive buffer alignment. More...
 

Properties

static System::Int32 LENGTH_AUTO [get]
 A special value indicating that the actual value will be automatically resolved. More...
 

Detailed Description

Configures threads used by RTI Connext to receive and process data from transports (for example, UDP sockets).

This QoS policy is an extension to the DDS standard.

Entity:
DDS::DomainParticipant
Properties:
RxO = N/A
Changeable = NO
See also
Controlling CPU Core Affinity for RTI Threads

Usage

This QoS policy sets the thread properties such as priority level and stack size for the threads used by the middleware to receive and process data from transports.

RTI uses a separate receive thread per port per transport plug-in. To force RTI Connext to use a separate thread to process the data for a DDS::DataReader, set a unique port for the DDS::TransportUnicastQosPolicy or DDS::TransportMulticastQosPolicy for the DDS::DataReader.

This QoS policy also sets the size of the buffer used to store packets received from a transport. This buffer size will limit the largest single packet of data that a DDS::DomainParticipant will accept from a transport. Users will often set this size to the largest packet that any of the transports used by their application will deliver. For many applications, the value 65,536 (64 K) is a good choice; this value is the largest packet that can be sent/received via UDP.

Member Data Documentation

◆ thread

ThreadSettings_t ^ DDS::ReceiverPoolQosPolicy::thread

Receiver pool thread(s).

There is at least one receive thread, possibly more.

[default] priority above normal.
The actual value depends on your architecture:

For Windows: 2
For Linux: OS default priority
For a complete list of platform specific values, please refer to Platform Notes.

[default] The actual value depends on your architecture:

For Windows: OS default stack size
For Linux: OS default stack size
For a complete list of platform specific values, please refer to Platform Notes.

[default] mask DDS::ThreadSettingsKind::THREAD_SETTINGS_FLOATING_POINT | DDS::ThreadSettingsKind::THREAD_SETTINGS_STDIO

◆ buffer_size

System::Int32 DDS::ReceiverPoolQosPolicy::buffer_size

The receive buffer size.

The receive buffer is used by the receive thread to store the raw data that arrives over the transport.

In many applications, users will change the configuration of the built-in transport "<TRANSPORT_PREFIX>.parent.message_size_max" to increase the size of the largest data packet that can be sent or received through the transport. Typically, users will change the UDPv4 transport plugin's "<TRANSPORT_PREFIX>.parent.message_size_max" to 65536 (64 K), which is the largest packet that can be sent/received via UDP.

If you change buffer_size from its default value of LENGTH_AUTO, it should be set to be the same value as the maximum "<TRANSPORT_PREFIX>.parent.message_size_max" across all of the transports being used that are not doing zero-copy (described below).

If your application only uses transports that support zero-copy, buffer_size does not need to be greater than "<TRANSPORT_PREFIX>.parent.message_size_max".

Transports that support zero-copy do not copy their data into the buffer provided by the receive thread. Instead, they provide the receive thread data in a buffer allocated by the transport itself. Only the shared memory built-in transport (SHMEM) supports zero-copy.

buffer_size may be deprecated in the future.

[default] DDS::ReceiverPoolQosPolicy::LENGTH_AUTO

[range] [1, 1 GB] or DDS::ReceiverPoolQosPolicy::LENGTH_AUTO

◆ buffer_alignment

System::Int32 DDS::ReceiverPoolQosPolicy::buffer_alignment

The receive buffer alignment.

Most users will not need to change this alignment.

[default] 16

[range] [1,1024] Value must be a power of 2.


RTI Connext .Net APIs Version 6.0.1 Copyright © Sat Nov 23 2019 Real-Time Innovations, Inc