Detailed Description
An InterfaceBuilder, this can construct Interface objects
Constructor & Destructor Documentation
ola::network::InterfaceBuilder::InterfaceBuilder |
( |
| ) |
|
Create a new interface builder
Member Function Documentation
Interface ola::network::InterfaceBuilder::Construct |
( |
| ) |
|
Return a new interface object. Maybe in the future we should check that the broadcast address, ip address and netmask are consistent. We could even infer the broadcast_address if it isn't provided.
void ola::network::InterfaceBuilder::Reset |
( |
| ) |
|
bool ola::network::InterfaceBuilder::SetAddress |
( |
const string & |
ip_address | ) |
|
Set the address of the interface to build.
bool ola::network::InterfaceBuilder::SetBroadcast |
( |
const string & |
broadcast_address | ) |
|
Set the broadcast address of the interface to build.
bool ola::network::InterfaceBuilder::SetHardwareAddress |
( |
const string & |
mac_address | ) |
|
Sets the hardware (mac) address.
- Parameters
-
mac_address | a string in the form 'nn:nn:nn:nn:nn:nn' or 'nn.nn.nn.nn.nn.nn' |
void ola::network::InterfaceBuilder::SetLoopback |
( |
bool |
loopback | ) |
|
bool ola::network::InterfaceBuilder::SetSubnetMask |
( |
const string & |
mask | ) |
|
Set the subnet mask of the interface to build.
The documentation for this class was generated from the following files:
- include/ola/network/Interface.h
- common/network/Interface.cpp