This class extract files from FLUTE streams in UDP datagrams.
More...
#include <tsFluteDemux.h>
|
| | FluteDemux (DuckContext &duck, FluteHandlerInterface *handler=nullptr) |
| | Constructor.
|
| |
|
| ~FluteDemux () |
| | Destructor.
|
| |
| template<class Rep , class Period > |
| void | feedPacket (const cn::duration< Rep, Period > ×tamp, const IPPacket &pkt) |
| | The following method feeds the demux 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 demux with a UDP packet.
|
| |
| void | getFilesStatus () |
| | Get the current status of all file transfers.
|
| |
| bool | reset (const FluteDemuxArgs &args) |
| | Reset the demux.
|
| |
| void | setHandler (FluteHandlerInterface *h) |
| | Replace the FLUTE handler.
|
| |
This class extract files from FLUTE streams in UDP datagrams.
◆ FluteDemux()
Constructor.
- Parameters
-
| [in,out] | duck | TSDuck execution context. The reference is kept inside the demux. |
| [in] | handler | The object to invoke when FLUTE information is found. |
◆ setHandler()
Replace the FLUTE handler.
- Parameters
-
◆ reset()
Reset the demux.
- Parameters
-
- Returns
- True on success, false on error.
◆ feedPacket() [1/2]
template<class Rep , class Period >
| void ts::FluteDemux::feedPacket |
( |
const cn::duration< Rep, Period > & |
timestamp, |
|
|
const IPPacket & |
pkt |
|
) |
| |
The following method feeds the demux 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::FluteDemux::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 demux 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. |
◆ getFilesStatus()
| void ts::FluteDemux::getFilesStatus |
( |
| ) |
|
Get the current status of all file transfers.
The current handler is invoked on method handleFluteStatus() for each file, either completely or partially transfered.
The documentation for this class was generated from the following file: