TSDuck v3.39-3843
MPEG Transport Stream Toolkit
Loading...
Searching...
No Matches
ts::UDPReceiverArgsList Class Reference

Command line arguments for the class UDPReceiver. More...

#include <tsUDPReceiverArgsList.h>

Inheritance diagram for ts::UDPReceiverArgsList:
Collaboration diagram for ts::UDPReceiverArgsList:

Public Member Functions

void defineArgs (Args &args, bool with_short_options, bool destination_is_parameter, bool multiple_receivers)
 Add command line option definitions in an Args.
 
bool loadArgs (DuckContext &duck, Args &args, cn::milliseconds default_receive_timeout=cn::milliseconds(-1))
 Load arguments from command line.
 

Detailed Description

Command line arguments for the class UDPReceiver.

On the command line, depending on the application, zero, one, or more, receivers can be specified.

Member Function Documentation

◆ defineArgs()

void ts::UDPReceiverArgsList::defineArgs ( Args args,
bool  with_short_options,
bool  destination_is_parameter,
bool  multiple_receivers 
)
inline

Add command line option definitions in an Args.

Parameters
[in,out]argsCommand line arguments to update.
[in]with_short_optionsWhen true, define one-letter short options.
[in]destination_is_parameterWhen true, the destination [address:]port is defined as a mandatory parameter. When false, it is defined as option –ip–udp (optional, can be omitted)
[in]multiple_receiversWhen true, multiple destination [address:]port are allowed.

◆ loadArgs()

bool ts::UDPReceiverArgsList::loadArgs ( DuckContext duck,
Args args,
cn::milliseconds  default_receive_timeout = cn::milliseconds(-1) 
)

Load arguments from command line.

Must be called after defineArgs(). Args error indicator is set in case of incorrect arguments.

Upon return, the number of elements in this instance depends on defineArgs() parameters:

destination_is_parameter multiple_receivers Number of elements
true true 1 or more
true false 1
false true 0 or more
false false  0 or 1
Parameters
[in,out]duckTSDuck execution context.
[in,out]argsCommand line arguments.
[in]default_receive_timeoutDefault receive timeout in milliseconds. No timeout if zero or negative.
Returns
True on success, false on error in argument line.

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