RTI Connext Modern C++ API Version 7.1.0
|
<<extension>> Input parameters for starting Network Capture. More...
#include <network_capture.hpp>
Inherits rti::core::NativeValueType< T, NATIVE_T, ADAPTER >.
Public Member Functions | |
dds::core::StringSeq | transports () const |
Get the list of transports to capture. More... | |
NetworkCaptureParams & | transports (const dds::core::StringSeq &transports_in) |
Set the list of transports to capture. More... | |
ContentKindMask | dropped_content () const |
Get the type of contents to exclude from the capture file. More... | |
NetworkCaptureParams & | dropped_content (ContentKindMask dropped_content_in) |
Set the type of contents to exclude from the capture file. More... | |
TrafficKindMask | traffic () const |
Get the traffic direction to capture. More... | |
NetworkCaptureParams & | traffic (TrafficKindMask traffic_in) |
Set the traffic direction to capture. More... | |
bool | parse_encrypted_content () const |
Get whether Network Capture will parse encrypted contents. More... | |
NetworkCaptureParams & | parse_encrypted_content (bool parse_encrypted_content_in) |
Set whether Network Capture will parse encrypted contents. More... | |
const rti::core::ThreadSettings & | checkpoint_thread_settings () const |
Get the properties of the checkpoint thread. More... | |
NetworkCaptureParams & | checkpoint_thread_settings (const rti::core::ThreadSettings &checkpoint_thread_settings_in) |
Set the properties of the checkpoint thread. More... | |
int32_t | frame_queue_size () const |
Get the size of the frame queue (Bytes). More... | |
NetworkCaptureParams & | frame_queue_size (int32_t frame_queue_size_in) |
Set the size of the frame queue. More... | |
<<extension>> Input parameters for starting Network Capture.
dds::core::StringSeq rti::util::network_capture::NetworkCaptureParams::transports | ( | ) | const |
Get the list of transports to capture.
NetworkCaptureParams & rti::util::network_capture::NetworkCaptureParams::transports | ( | const dds::core::StringSeq & | transports_in | ) |
Set the list of transports to capture.
Network Capture will only save RTPS frames if the associated transport protocol is part of this sequence.
[default] Empty sequence initializer. This means that by default all transports will be captured.
transports_in | The sequence of transports that we want to capture traffic from. |
ContentKindMask rti::util::network_capture::NetworkCaptureParams::dropped_content | ( | ) | const |
Get the type of contents to exclude from the capture file.
NetworkCaptureParams & rti::util::network_capture::NetworkCaptureParams::dropped_content | ( | ContentKindMask | dropped_content_in | ) |
Set the type of contents to exclude from the capture file.
It accepts values from network_capture::ContentKindMask .
We can choose to exclude user data or encrypted content from the capture file.
[default] No content is excluded - network_capture::ContentKindMask::default_mask().
dropped_content_in | The mask of contents to exclude from the capture. |
TrafficKindMask rti::util::network_capture::NetworkCaptureParams::traffic | ( | ) | const |
Get the traffic direction to capture.
NetworkCaptureParams & rti::util::network_capture::NetworkCaptureParams::traffic | ( | TrafficKindMask | traffic_in | ) |
Set the traffic direction to capture.
It accepts values from network_capture::TrafficKindMask .
[default] Capture both inbound and outbound traffic - network_capture::TrafficKindMask::default_mask().
traffic_in | The mask with the traffic directions that we want to capture. |
bool rti::util::network_capture::NetworkCaptureParams::parse_encrypted_content | ( | ) | const |
Get whether Network Capture will parse encrypted contents.
NetworkCaptureParams & rti::util::network_capture::NetworkCaptureParams::parse_encrypted_content | ( | bool | parse_encrypted_content_in | ) |
Set whether Network Capture will parse encrypted contents.
[default] false
parse_encrypted_content_in | Boolean indicating whether to parse or not encrypted content. |
const rti::core::ThreadSettings & rti::util::network_capture::NetworkCaptureParams::checkpoint_thread_settings | ( | ) | const |
Get the properties of the checkpoint thread.
NetworkCaptureParams & rti::util::network_capture::NetworkCaptureParams::checkpoint_thread_settings | ( | const rti::core::ThreadSettings & | checkpoint_thread_settings_in | ) |
Set the properties of the checkpoint thread.
The checkpoint thread is a per-participant thread responsible for reading frames from a queue and saving them to disk (as soon as they are produced).
The members that can be configured are:
checkpoint_thread_settings_in | Properties of the checkpoint thread that we want to set. |
int32_t rti::util::network_capture::NetworkCaptureParams::frame_queue_size | ( | ) | const |
Get the size of the frame queue (Bytes).
Network capture enqueues frames before saving them to disk, which takes place in a separate thread.
Network Capture does not block if the queue becomes full. Attempting to enqueue a frame with a full frame queue will fail (frame won't be captured) with a log message.
The size of the queue is dependent on the network traffic (amount of frames that we want to capture) and system resources (how fast we can capture frames).
[default] 2097152 (2MB).
NetworkCaptureParams & rti::util::network_capture::NetworkCaptureParams::frame_queue_size | ( | int32_t | frame_queue_size_in | ) |
Set the size of the frame queue.
Network capture enqueues frames before saving them to disk, which takes place in a separate thread.
Network Capture does not block if the queue becomes full. Attempting to enqueue a frame with a full frame queue will fail (frame won't be captured) with a log message.
The size of the queue is dependent on the network traffic (amount of frames that we want to capture) and system resources (how fast we can capture frames).
[default] 2097152 (2MB).
frame_queue_size_in | Size of the frame queue in Bytes. |