RTI Connext Traditional C++ API
Version 6.1.1
|
Network Capture APIs. More...
Static Public Member Functions | |
static DDS_Boolean | enable () |
Enable Network Capture. More... | |
static DDS_Boolean | disable () |
Disable Network Capture. More... | |
static DDS_Boolean | set_default_params (const NDDS_Utility_NetworkCaptureParams_t ¶ms) |
Set the default Network Capture parameters. More... | |
static DDS_Boolean | start (const char *filename) |
Start capturing traffic for all DomainParticipants, with the default parameters. More... | |
static DDS_Boolean | start (DDSDomainParticipant *participant, const char *filename) |
Start capturing traffic for a DomainParticipant, with the default parameters. More... | |
static DDS_Boolean | start (const char *filename, const NDDS_Utility_NetworkCaptureParams_t ¶ms) |
Start capturing traffic for all DomainParticipants, with the provided parameters. More... | |
static DDS_Boolean | start (DDSDomainParticipant *participant, const char *filename, const NDDS_Utility_NetworkCaptureParams_t ¶ms) |
Start capturing traffic for a DomainParticipant, with the provided parameters. More... | |
static DDS_Boolean | stop () |
Stop capturing traffic for all participants. More... | |
static DDS_Boolean | stop (DDSDomainParticipant *participant) |
Stop capturing traffic for a DomainParticipant. More... | |
static DDS_Boolean | pause () |
Pause capturing traffic for all DomainParticipants. More... | |
static DDS_Boolean | pause (DDSDomainParticipant *participant) |
Pause capturing traffic for a DomainParticipant. More... | |
static DDS_Boolean | resume () |
Resume capturing traffic for all DomainParticipants. More... | |
static DDS_Boolean | resume (DDSDomainParticipant *participant) |
Resume capturing traffic for a DomainParticipant. More... | |
Network Capture APIs.
|
static |
Enable Network Capture.
This method must be called before any other Network Capture method. It must also be called before creating the participants for which we want to capture traffic.
Use this method only for debugging purposes, since it may introduce a significant performance impact.
|
static |
Disable Network Capture.
This method must be the last Network Capture method to be called. It must also be called after deleting the participants for which we captured traffic. Disabling Network Capture without stopping it first is not ok!
|
static |
Set the default Network Capture parameters.
The default parameters are used when Network Capture is started without parameters, i.e., NDDSUtilityNetworkCapture::start.
params | <<in>>. Configuration parameters that we want to set as defaults. |
|
static |
Start capturing traffic for all DomainParticipants, with the default parameters.
filename | <<in>>. The name of the output capture file will be based on this input parameter. |
In particular, the name for the capture file is the concatenation of the filename
input parameter, the "_GUID-"
string followed by the decimal representation of bytes 8-11 of the DomainParticipant's GUID, and the file extension (".pcap"
).
|
static |
Start capturing traffic for a DomainParticipant, with the default parameters.
participant | <<in>>. DomainParticipant for which we want to capture traffic. |
filename | <<in>>. The name of the output capture file will be based on this input parameter. |
In particular, the name for the capture file is the concatenation of the filename
input parameter, and the file extension (".pcap"
).
|
static |
Start capturing traffic for all DomainParticipants, with the provided parameters.
Perfoms the same function as NDDSUtilityNetworkCapture::start except that it uses the provided parameters, instead of the default ones.
filename | <<in>>. The name of the output capture file will be based on this input parameter. |
In particular, the name for the capture file is the concatenation of the filename
input parameter, the "_GUID-"
string followed by the decimal representation of bytes 8-11 of the DomainParticipant's GUID, and the file extension (".pcap"
).
params | <<in>>. Configuration parameters for the capture. |
|
static |
Start capturing traffic for a DomainParticipant, with the provided parameters.
participant | <<in>>. DomainParticipant for which we want to capture traffic. |
filename | <<in>>. The name of the output capture file will be based on this input parameter. |
In particular, the name for the capture file is the concatenation of the filename
input parameter, and the file extension (".pcap"
).
params | <<in>>. Parameters for configuring the capture. |
|
static |
Stop capturing traffic for all participants.
This method can (and must) be called after NDDSUtilityNetworkCapture::start, not NDDSUtilityNetworkCapture::start(DDSDomainParticipant *, const char *). That is, if we start capturing traffic globally (for all DomainParticipants), we must stop capturing traffic also globally. It is not possible to start capturing traffic for a participant but stop it globally.
It is possible to start capturing globally and then stop capturing for a participant, as long as we eventually stop capturing traffic globally.
We must stop capturing for a participant before deleting it.
|
static |
Stop capturing traffic for a DomainParticipant.
participant | <<in>>. DomainParticipant for which we want to stop capturing traffic. |
|
static |
Pause capturing traffic for all DomainParticipants.
|
static |
Pause capturing traffic for a DomainParticipant.
participant | <<in>>. DomainParticipant for which we want to pause capturing traffic. |
|
static |
Resume capturing traffic for all DomainParticipants.
|
static |
Resume capturing traffic for a DomainParticipant.
participant | <<in>>. DomainParticipant for which we want to resume capturing traffic. |