TSDuck Version 3.32-2820 (TSDuck - The MPEG Transport Stream Toolkit)
ts::WebRequestArgs Class Reference

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

Collaboration diagram for ts::WebRequestArgs:

Public Member Functions

 WebRequestArgs ()
 Constructor.
 
void defineArgs (Args &args)
 Add command line option definitions in an Args. More...
 
bool loadArgs (DuckContext &duck, Args &args)
 Load arguments from command line. More...
 

Public Attributes

MilliSecond connectionTimeout
 --connection-timeout
 
UString cookiesFile
 Cookies files (Linux only), no command line options.
 
UString proxyHost
 --proxy-host
 
UString proxyPassword
 --proxy-password
 
uint16_t proxyPort
 --proxy-port
 
UString proxyUser
 --proxy-user
 
MilliSecond receiveTimeout
 --receive-timeout
 
bool useCookies
 Use cookies, no command line options, true by default.
 
UString userAgent
 --user-agent
 

Detailed Description

Command line arguments for the class WebRequest.

Member Function Documentation

◆ defineArgs()

void ts::WebRequestArgs::defineArgs ( Args args)

Add command line option definitions in an Args.

Parameters
[in,out]argsCommand line arguments to update.

◆ loadArgs()

bool ts::WebRequestArgs::loadArgs ( DuckContext duck,
Args args 
)

Load arguments from command line.

Args error indicator is set in case of incorrect arguments.

Parameters
[in,out]duckTSDuck execution context.
[in,out]argsCommand line arguments.
Returns
True on success, false on error in argument line.

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