TSDuck v3.43-4509
MPEG Transport Stream Toolkit
Loading...
Searching...
No Matches
ts::FluteSessionId Class Reference

Representation of a FLUTE session identification. More...

#include <tsFluteSessionId.h>

Inheritance diagram for ts::FluteSessionId:
Collaboration diagram for ts::FluteSessionId:

Public Member Functions

 FluteSessionId ()=default
 Default constructor.
 
 FluteSessionId (const IPAddress &source, const IPSocketAddress &destination, uint64_t tsi)
 Explicit constructor.
 
void clear ()
 Clear the content of this object.
 
bool match (const FluteSessionId &other) const
 Check if this session id "matches" another one.
 
bool nipAnnouncementChannel () const
 Check if this session is in the DVB-NIP Announcement Channel.
 
bool operator< (const FluteSessionId &other) const
 Comparison operator for use as index in maps.
 
bool parseXML (const xml::Element *element)
 Reinitialize the structure from a XML element.
 
virtual UString toString () const override
 Convert to a string object.
 

Public Attributes

IPSocketAddress destination {}
 Destination IP address and UDP port.
 
IPAddress source {}
 Source IP address.
 
uint64_t tsi = INVALID_TSI
 Transport Session Identifier.
 

Detailed Description

Representation of a FLUTE session identification.

Constructor & Destructor Documentation

◆ FluteSessionId()

ts::FluteSessionId::FluteSessionId ( const IPAddress source,
const IPSocketAddress destination,
uint64_t  tsi 
)

Explicit constructor.

Parameters
[in]sourceSource IP address.
[in]destinationDestination IP address and UDP port.
[in]tsiTransport Session Identifier.

Member Function Documentation

◆ operator<()

bool ts::FluteSessionId::operator< ( const FluteSessionId other) const

Comparison operator for use as index in maps.

Parameters
[in]otherAnother instance to compare.
Returns
True is this instance is logically less that other.

◆ match()

bool ts::FluteSessionId::match ( const FluteSessionId other) const

Check if this session id "matches" another one.

Parameters
[in]otherAnother instance to compare.
Returns
False if any addresse, port, or TSI in this and other are both specified and are different. True otherwise.

◆ nipAnnouncementChannel()

bool ts::FluteSessionId::nipAnnouncementChannel ( ) const

Check if this session is in the DVB-NIP Announcement Channel.

Returns
True if this session is in the DVB-NIP Announcement Channel.

◆ parseXML()

bool ts::FluteSessionId::parseXML ( const xml::Element element)

Reinitialize the structure from a XML element.

Parameters
[in]elementRoot XML element to analyze.
Returns
True on success, false on error.

◆ toString()

virtual UString ts::FluteSessionId::toString ( ) const
overridevirtual

Convert to a string object.

Returns
This object, converted as a string.

Implements ts::StringifyInterface.


The documentation for this class was generated from the following file: