PIP 5.6.1
Platform-Independent Primitives
Public Member Functions | Public Attributes | List of all members
PIEthernet::Interface Struct Reference

Public descriptor of a system network interface. More...

#include <piethernet.h>

Public Member Functions

bool isValid () const
 Returns whether the descriptor contains a valid interface.
 
bool isActive () const
 Returns whether the interface is active.
 
bool isRunning () const
 Returns whether the interface is running.
 
bool isBroadcast () const
 Returns whether broadcast is supported.
 
bool isMulticast () const
 Returns whether multicast is supported.
 
bool isLoopback () const
 Returns whether the interface is loopback.
 
bool isPTP () const
 Returns whether the interface is point-to-point.
 

Public Attributes

int index = -1
 System interface index.
 
int mtu = 0
 Interface MTU.
 
PIString name
 System interface name.
 
PIString mac
 MAC address in format "hh:hh:hh:hh:hh:hh", or empty if unavailable.
 
PIString address
 IPv4 address in format "i.i.i.i", or empty if unavailable.
 
PIString netmask
 Netmask in format "i.i.i.i", or empty if unavailable.
 
PIString broadcast
 Broadcast address in format "i.i.i.i", or empty if unavailable.
 
PIString ptp
 Point-to-point peer address, or empty if unavailable.
 
InterfaceFlags flags
 Interface capability flags.
 

Detailed Description

Public descriptor of a system network interface.