![]() |
TSDuck v3.43-4509
MPEG Transport Stream Toolkit
|
DVB-NIP analyzer. More...
#include <tsNIPAnalyzer.h>


Public Member Functions | |
| NIPAnalyzer (DuckContext &duck) | |
| Constructor. | |
| void | addSession (const FluteSessionId &session) |
| Add a FLUTE session in the DVB-NIP analyzer. | |
| template<class Rep , class Period > | |
| void | feedPacket (const cn::duration< Rep, Period > ×tamp, const IPPacket &pkt) |
| The following method feeds the analyzer with an IP packet. | |
| template<class Rep , class Period > | |
| void | feedPacket (const cn::duration< Rep, Period > ×tamp, const IPSocketAddress &source, const IPSocketAddress &destination, const uint8_t *udp, size_t udp_size) |
| The following method feeds the analyzer with a UDP packet. | |
| void | printSummary (std::ostream &out=std::cout) |
| Print a summary of the DVB-NIP session. | |
| bool | reset (const NIPAnalyzerArgs &args) |
| Reset the analysis. | |
DVB-NIP analyzer.
| ts::NIPAnalyzer::NIPAnalyzer | ( | DuckContext & | duck | ) |
Constructor.
| [in,out] | duck | TSDuck execution context. A reference is kept in this object. |
| bool ts::NIPAnalyzer::reset | ( | const NIPAnalyzerArgs & | args | ) |
Reset the analysis.
| [in] | args | Analysis arguments. |
| void ts::NIPAnalyzer::feedPacket | ( | const cn::duration< Rep, Period > & | timestamp, |
| const IPPacket & | pkt | ||
| ) |
The following method feeds the analyzer with an IP packet.
The packet is ignored if this is not a UDP packet.
| [in] | timestamp | Packet time stamp value. This value should be taken from a monotonic clock. |
| [in] | pkt | An IP packet. |
| void ts::NIPAnalyzer::feedPacket | ( | const cn::duration< Rep, Period > & | timestamp, |
| const IPSocketAddress & | source, | ||
| const IPSocketAddress & | destination, | ||
| const uint8_t * | udp, | ||
| size_t | udp_size | ||
| ) |
The following method feeds the analyzer with a UDP packet.
| [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. |
| void ts::NIPAnalyzer::addSession | ( | const FluteSessionId & | session | ) |
Add a FLUTE session in the DVB-NIP analyzer.
There is normally no reason to call this from the application. The analyzer always starts with the DVB-NIP Announcement Channel on reset(). Then, all declared sessions in the DVB-NIP tables are automatically added.
| [in] | session | The session id to add. |
| void ts::NIPAnalyzer::printSummary | ( | std::ostream & | out = std::cout | ) |
Print a summary of the DVB-NIP session.
Print nothing of option summary was not specified.
| [in,out] | out | Where to print the summary if no output file was specified in NIPAnalyzerArgs. Ignored when an output file was specified. |