INFM HIL Interface
Interface between Artery simulation and DuTs
Public Member Functions | Static Public Member Functions | List of all members
sim_interface::dut_connector::can::InterfaceIndexIO Class Reference

I/O control command class for getting the interface index. For further information see boost asio io_control. More...

#include <InterfaceIndexIO.h>

Public Member Functions

 InterfaceIndexIO (std::string interfaceName)
 
void * data ()
 
int index () const
 

Static Public Member Functions

static int name ()
 

Detailed Description

I/O control command class for getting the interface index. For further information see boost asio io_control.

Constructor & Destructor Documentation

◆ InterfaceIndexIO()

sim_interface::dut_connector::can::InterfaceIndexIO::InterfaceIndexIO ( std::string  interfaceName)
explicit

Constructor.

Parameters
interfaceName- The name of the interface which index should be resolved.

Member Function Documentation

◆ data()

void * sim_interface::dut_connector::can::InterfaceIndexIO::data ( )

Returns the ifreq struct that contains the interface name.

Returns
The ifreq with the name

◆ index()

int sim_interface::dut_connector::can::InterfaceIndexIO::index ( ) const

Returns the resolved interface index.

Returns
The resolved interface index.

◆ name()

int sim_interface::dut_connector::can::InterfaceIndexIO::name ( )
static

Returns the POSIX ioctl() value for getting the interface index by name.

Returns
The value of SIOCGIFINDEX

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