Open Lighting Architecture
0.9.5
|
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.
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 () |