PTLib  Version 2.10.4
PIPSocket::RouteEntry Class Reference

Describe a route table entry. More...

#include <ipsock.h>

Inheritance diagram for PIPSocket::RouteEntry:
PObject

List of all members.

Public Member Functions

 RouteEntry (const Address &addr)
 Create a route table entry from an IP address.
Address GetNetwork () const
 Get the network address associated with the route table entry.
Address GetNetMask () const
 Get the network address mask associated with the route table entry.
Address GetDestination () const
 Get the default gateway address associated with the route table entry.
const PStringGetInterface () const
 Get the network address name associated with the route table entry.
long GetMetric () const
 Get the network metric associated with the route table entry.

Protected Attributes

Address network
Address net_mask
Address destination
PString interfaceName
long metric

Detailed Description

Describe a route table entry.


Constructor & Destructor Documentation

PIPSocket::RouteEntry::RouteEntry ( const Address addr) [inline]

Create a route table entry from an IP address.


Member Function Documentation

Get the default gateway address associated with the route table entry.

References destination.

const PString& PIPSocket::RouteEntry::GetInterface ( ) const [inline]

Get the network address name associated with the route table entry.

References interfaceName.

long PIPSocket::RouteEntry::GetMetric ( ) const [inline]

Get the network metric associated with the route table entry.

References metric.

Get the network address mask associated with the route table entry.

References net_mask.

Get the network address associated with the route table entry.

References network.


Member Data Documentation

Referenced by GetMetric().


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