class Peer

RIP Peer. More...

Definition#include <peer.hh>
Template formPeer<typename A>
InheritsRouteEntryOrigin [public ]
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Types

Public Methods

Protected Members


Detailed Description

A RIP peer is a host that sent RIP packets, originating routes, to the local RIP Port (Port<A>) that have originated routes. Most of a Peer's work is conducted by the Port associated with the Peer instance. The Peer class just acts as a container of information about the Peer host, such as the number of packets sent, the time of last update, etc.

typedef A Addr

Addr

typedef Port<A> RipPort

RipPort

 Peer (RipPort& p, const Addr& addr)

Peer

inline const Addr&  address ()

address

[const]

Get address of Peer.

inline PeerCounters&  counters ()

counters

Get counters associated with Peer.

inline const PeerCounters&  counters ()

counters

[const]

Get counters associated with Peer.

inline RipPort&  port ()

port

Get port associated with Peer.

inline const RipPort&  port ()

port

[const]

Get port associatd with Peer.

inline void  set_last_active (const TimeVal& t)

set_last_active

Set last active time.

inline const TimeVal&  last_active ()

last_active

[const]

Get last active time.

RipPort& _port

_port

[protected]

Addr _addr

_addr

[protected]

PeerCounters _counters

_counters

[protected]

TimeVal _last_active

_last_active

[protected]


Generated by: pavlin on possum.icir.org on Mon Jun 9 13:24:02 2003, using kdoc 2.0a54+XORP.