Open Lighting Architecture: ola::rdm::InterfacePicker Class Reference

| Open Lighting Architecture 0.10.9

Loading...
Searching...
No Matches
Classes | Public Member Functions | Static Public Member Functions | List of all members
ola::rdm::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::rdm::InterfacePicker:

## 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< Interface > | GetInterfaces (bool include_loopback) const=0

## Static Public Member Functions
static InterfacePicker * | NewPicker ()

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

- include/ola/network/InterfacePicker.h
- common/network/InterfacePicker.cpp