TSDuck v3.43-4520
MPEG Transport Stream Toolkit
Loading...
Searching...
No Matches
ts::mcast::NIPAnalyzer Class Reference

DVB-NIP analyzer with extraction and reporting. More...

#include <tsmcastNIPAnalyzer.h>

Inheritance diagram for ts::mcast::NIPAnalyzer:
Collaboration diagram for ts::mcast::NIPAnalyzer:

Public Member Functions

 NIPAnalyzer (DuckContext &duck)
 Constructor.
 
template<class Rep , class Period >
void feedPacket (const cn::duration< Rep, Period > &timestamp, 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 > &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.
 
void printSummary (std::ostream &out=std::cout)
 Print a summary of the DVB-NIP session.
 
bool reset (const NIPAnalyzerArgs &args)
 Reset the analysis.
 

Detailed Description

DVB-NIP analyzer with extraction and reporting.

Constructor & Destructor Documentation

◆ NIPAnalyzer()

ts::mcast::NIPAnalyzer::NIPAnalyzer ( DuckContext duck)

Constructor.

Parameters
[in,out]duckTSDuck execution context. A reference is kept in this object.

Member Function Documentation

◆ reset()

bool ts::mcast::NIPAnalyzer::reset ( const NIPAnalyzerArgs args)

Reset the analysis.

Parameters
[in]argsAnalysis 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]timestampPacket time stamp value. This value should be taken from a monotonic clock.
[in]pktAn 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]timestampPacket time stamp value. This value should be taken from a monotonic clock.
[in]sourceSource socket address.
[in]destinationDestination socket address.
[in]udpAddress of UDP payload.
[in]udp_sizeSize 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]outWhere 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: