Open Lighting Architecture 0.10.9
Loading...
Searching...
No Matches
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:

  • an interface name i.e. eth0
  • an IP address
  • an index.

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

Inheritance diagram for ola::network::InterfacePicker:
ola::network::FakeInterfacePicker ola::network::PosixInterfacePicker ola::network::WindowsInterfacePicker

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: