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

Production implementation of IMacAddressProvider. More...

#include <util.h>

+ Inheritance diagram for profinet::MacAddressProvider:
+ Collaboration diagram for profinet::MacAddressProvider:

Public Member Functions

MacAddress GetMac (const std::string &interface) override
 Get the MAC address of a network interface.
 
- Public Member Functions inherited from profinet::IMacAddressProvider
virtual ~IMacAddressProvider ()=default
 

Detailed Description

Production implementation of IMacAddressProvider.

Definition at line 168 of file util.h.

Member Function Documentation

◆ GetMac()

MacAddress profinet::MacAddressProvider::GetMac ( const std::string &  interface)
overridevirtual

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.

Implements profinet::IMacAddressProvider.

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

Definition at line 266 of file util.cpp.

References profinet::GetInterfaceMac().

Referenced by TEST().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

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