PTLib  Version 2.10.4
PIPSocket::InterfaceEntry Class Reference

Describe an interface table entry. More...

#include <ipsock.h>

Inheritance diagram for PIPSocket::InterfaceEntry:
PObject

List of all members.

Public Member Functions

 InterfaceEntry ()
 Create an interface entry from a name, IP addr and MAC addr.
 InterfaceEntry (const PString &name, const Address &addr, const Address &mask, const PString &macAddr)
virtual void PrintOn (ostream &strm) const
 Print to specified stream.
const PStringGetName () const
 Get the name of the interface.
Address GetAddress () const
 Get the address associated with the interface.
Address GetNetMask () const
 Get the net mask associated with the interface.
const PStringGetMACAddress () const
 Get the MAC address associate with the interface.

Protected Attributes

PString name
Address ipAddr
Address netMask
PString macAddr

Detailed Description

Describe an interface table entry.


Constructor & Destructor Documentation

Create an interface entry from a name, IP addr and MAC addr.

PIPSocket::InterfaceEntry::InterfaceEntry ( const PString name,
const Address addr,
const Address mask,
const PString macAddr 
)

Member Function Documentation

Get the address associated with the interface.

References ipAddr.

Get the MAC address associate with the interface.

References macAddr.

const PString& PIPSocket::InterfaceEntry::GetName ( ) const [inline]

Get the name of the interface.

References name.

Get the net mask associated with the interface.

References netMask.

virtual void PIPSocket::InterfaceEntry::PrintOn ( ostream &  strm) const [virtual]

Print to specified stream.

Reimplemented from PObject.


Member Data Documentation


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines