PROFINET IO Controller Stack 1.0.0
Modern C++ implementation of a PROFINET IO Controller stack
Loading...
Searching...
No Matches
profinet::IMacAddressProvider Class Referenceabstract

Provides the MAC address of a network interface. More...

#include <util.h>

+ Inheritance diagram for profinet::IMacAddressProvider:
+ Collaboration diagram for profinet::IMacAddressProvider:

Public Member Functions

virtual ~IMacAddressProvider ()=default
 
virtual MacAddress GetMac (const std::string &interface)=0
 Get the MAC address of a network interface.
 

Detailed Description

Provides the MAC address of a network interface.

Definition at line 154 of file util.h.

Constructor & Destructor Documentation

◆ ~IMacAddressProvider()

virtual profinet::IMacAddressProvider::~IMacAddressProvider ( )
virtualdefault

Member Function Documentation

◆ GetMac()

virtual MacAddress profinet::IMacAddressProvider::GetMac ( const std::string &  interface)
pure virtual

Get the MAC address of a network interface.

Parameters
interfaceName of the network interface.
Returns
MAC address assigned to the network interface.
Exceptions
SocketErrorIf the MAC address cannot be retrieved.

Implemented in profinet::MacAddressProvider.

Examples
/home/runner/work/rhmarine-oefenen/rhmarine-oefenen/profinet-io-controller-stack/include/profinet/util.h.

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