#include <tsmcastNIPAnalyzer.h>
DVB-NIP analyzer with extraction and reporting.
◆ NIPAnalyzer()
| ts::mcast::NIPAnalyzer::NIPAnalyzer |
( |
DuckContext & | duck | ) |
|
Constructor.
- Parameters
-
| [in,out] | duck | TSDuck execution context. A reference is kept in this object. |
◆ reset()
Reset the analysis.
- Parameters
-
| [in] | args | Analysis arguments. |
- Returns
- True on success, false on error.
◆ feedPacket() [1/2]
template<class Rep, class Period>
| void ts::mcast::NIPAnalyzer::feedPacket |
( |
const cn::duration< Rep, Period > & | timestamp, |
|
|
const IPPacket & | pkt ) |
|
inline |
The following method feeds the analyzer with an IP packet. The packet is ignored if this is not a UDP packet.
- Parameters
-
| [in] | timestamp | Packet time stamp value. This value should be taken from a monotonic clock. |
| [in] | pkt | An IP packet. |
◆ feedPacket() [2/2]
template<class Rep, class Period>
| void ts::mcast::NIPAnalyzer::feedPacket |
( |
const cn::duration< Rep, Period > & | timestamp, |
|
|
const IPSocketAddress & | source, |
|
|
const IPSocketAddress & | destination, |
|
|
const uint8_t * | udp, |
|
|
size_t | udp_size ) |
|
inline |
The following method feeds the analyzer with a UDP packet.
- Parameters
-
| [in] | timestamp | Packet time stamp value. This value should be taken from a monotonic clock. |
| [in] | source | Source socket address. |
| [in] | destination | Destination socket address. |
| [in] | udp | Address of UDP payload. |
| [in] | udp_size | Size in bytes of UDP payload. |
◆ printSummary()
| void ts::mcast::NIPAnalyzer::printSummary |
( |
std::ostream & | out = std::cout | ) |
|
Print a summary of the DVB-NIP session. Print nothing of option summary was not specified.
- Parameters
-
| [in,out] | out | Where to print the summary if no output file was specified in NIPAnalyzerArgs. Ignored when an output file was specified. |
The documentation for this class was generated from the following file: