Network Capture APIs.
More...
#include <managed_domain.h>
◆ enable()
| static System::Boolean NDDS::NetworkCapture::enable |
( |
| ) |
|
|
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.
- Returns
- true if success. Otherwise, false
- MT Safety:
- UNSAFE. It is not safe to call this method while another thread may be simultaneously calling another Network Caputre related method, including this one.
- See also
- NDDS::NetworkCapture::disable
◆ disable()
| static System::Boolean NDDS::NetworkCapture::disable |
( |
| ) |
|
|
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!
- Returns
- true if success. Otherwise, false
- MT Safety:
- UNSAFE. It is not safe to call this method while another thread may be simultaneously calling another Network Capture related method, including this one.
- See also
- NDDS::NetworkCapture::enable
◆ set_default_params()
◆ start() [1/4]
| static System::Boolean NDDS::NetworkCapture::start |
( |
System::String^ |
filename, |
|
|
NetworkCaptureParams_t^ |
params |
|
) |
| |
|
static |
Start capturing traffic for all DomainParticipants, with the provided parameters.
- Precondition
- This method requires first enabling Network Capture. See NDDS::NetworkCapture::enable.
Perfoms the same function as NDDS::NetworkCapture::start except that it uses the provided parameters, instead of the default ones.
- 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 the DomainParticipant's instance identifier (last four bytes of the ::DDS::RTPS_GuidPrefix_t), and the file extension (".pcap").
- Parameters
-
| params | <<in>>. Configuration parameters for the capture. |
- Returns
- true if success. Otherwise, false
- See also
- NDDS::NetworkCapture::stop
-
NDDS::NetworkCapture::start(DDS:DomainParticipant^, System::String^, NetworkCaptureParams_t^)
◆ start() [2/4]
◆ start() [3/4]
| static System::Boolean NDDS::NetworkCapture::start |
( |
System::String^ |
filename | ) |
|
|
static |
Start capturing traffic for all DomainParticipants, with the default parameters.
- Precondition
- This method requires first enabling Network Capture. See NDDS::NetworkCapture::enable.
- 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 the DomainParticipant's instance identifier (last four bytes of the ::DDS::RTPS_GuidPrefix_t), and the file extension (".pcap").
- Returns
- true if success. Otherwise, false
- See also
- NDDS::NetworkCapture::stop
-
NDDS::NetworkCapture::start(DDS::DomainParticipant^, System::String^)
◆ start() [4/4]
| static System::Boolean NDDS::NetworkCapture::start |
( |
DDS::DomainParticipant^ |
participant, |
|
|
System::String^ |
filename |
|
) |
| |
|
static |
Start capturing traffic for a DomainParticipant, with the default parameters.
- Precondition
- This method requires first enabling Network Capture. See NDDS::NetworkCapture::enable.
- 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").
- Returns
- true if success. Otherwise, false
- See also
- NDDS::NetworkCapture::stop(DDS::DomainParticipant^)
-
NDDS::NetworkCapture::start(DDS:DomainParticipant^, System::String^, NetworkCaptureParams_t^)
-
NDDS::NetworkCapture::enable
◆ stop() [1/2]
| static System::Boolean NDDS::NetworkCapture::stop |
( |
| ) |
|
|
static |
◆ stop() [2/2]
◆ pause() [1/2]
| static System::Boolean NDDS::NetworkCapture::pause |
( |
| ) |
|
|
static |
◆ pause() [2/2]
◆ resume() [1/2]
| static System::Boolean NDDS::NetworkCapture::resume |
( |
| ) |
|
|
static |
◆ resume() [2/2]