Open Lighting Architecture  Latest Git
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Classes | Public Member Functions | Static Public Member Functions | List of all members
ola::network::InterfacePicker Class Referenceabstract

Detailed Description

Given some initial parameters, find the best network interface to use.

The InterfacePicker tries to find a valid network interface that matches:

If the requested interface can't be found, it can fall back to returning any configured interface.

Inheritance diagram for ola::network::InterfacePicker:
Inheritance graph
[legend]

Classes

struct  Options
 

Public Member Functions

 InterfacePicker ()
 Constructor.
 
virtual ~InterfacePicker ()
 Destructor.
 
bool ChooseInterface (Interface *iface, const std::string &ip_or_name, const Options &options=Options()) const
 
bool ChooseInterface (Interface *iface, int32_t index, const Options &options=Options()) const
 
virtual std::vector< InterfaceGetInterfaces (bool include_loopback) const =0
 

Static Public Member Functions

static InterfacePickerNewPicker ()
 

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