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

Detailed Description

Given some intial 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:
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: