olsr::net::RealInterface Class Reference

#include <realinterface.hh>

Inheritance diagram for olsr::net::RealInterface:

olsr::utl::MultiStampable< Dim, Key, Compare >

List of all members.

Public Member Functions

 RealInterface (const sys::RealInterfaceInfo &info)
 RealInterface (const sys::RealInterfaceInfo &info, const address_t &addr)
 RealInterface (const This &other)
 ~RealInterface ()
const address_taddr () const
unsigned mtu () const
unsigned prefix () const
sch::IOEvent::p_t recv_p () const
sch::IOEvent::p_t send_p () const
void insert_event (sch::IOEvent *e)
void erase_event (sch::IOEvent *e)
void destroy_all_events ()
const sys::RealInterfaceInfoinfo () const
pkt::Packet receive () const
void send (const pkt::Packet &p) const
void shipout (const pkt::Packet &p)
unsigned queue_size () const
bool operator< (const This &rhs) const
void configure ()
void unconfigure ()

Static Public Member Functions

static Thismake_key (const address_t &a)

Private Types

typedef RealInterface This
typedef utl::MultiStampable
< 1, address_t
Super
typedef std::set< sch::IOEvent * > events_t

Private Member Functions

 RealInterface ()

Private Attributes

const sys::RealInterfaceInfo info_
 System-dependent information.
const address_t addr_
 RealInterface address.
unsigned prefix_
sys::Socket sock_
 RealInterface socket.
events_t events_
sch::PacketSendersender_
unsigned * usecount_
sys::RealInterfaceInfo::config_tconfig_
unsigned queue_size_

Static Private Attributes

static This dummy_for_find_
 Static instance for key generation.


Member Typedef Documentation

typedef std::set<sch::IOEvent*> olsr::net::RealInterface::events_t [private]


Constructor & Destructor Documentation

olsr::net::RealInterface::RealInterface (  )  [explicit, private]

The private constructor

This is defined solely for the initialization of dummy_for_find_.

olsr::net::RealInterface::RealInterface ( const sys::RealInterfaceInfo info  )  [inline]

olsr::net::RealInterface::RealInterface ( const sys::RealInterfaceInfo info,
const address_t addr 
) [inline]

olsr::net::RealInterface::RealInterface ( const This other  )  [inline]

The copy constructor

olsr::net::RealInterface::~RealInterface (  )  [inline]


Member Function Documentation

const address_t& olsr::net::RealInterface::addr (  )  const [inline]

Address accessor

Returns:
RealInterface's address

References addr_.

Referenced by olsr::sch::PacketReceiver::handle(), and olsr::alg::mprselection().

unsigned olsr::net::RealInterface::mtu (  )  const [inline]

MTU accessor

Returns:
MTU of interface

References olsr::net::IPv6Address::header_length, info_, and olsr::sys::RealInterfaceInfo::mtu().

unsigned olsr::net::RealInterface::prefix (  )  const [inline]

References prefix_.

sch::IOEvent::p_t olsr::net::RealInterface::recv_p (  )  const [inline]

sch::IOEvent::p_t olsr::net::RealInterface::send_p (  )  const [inline]

void olsr::net::RealInterface::insert_event ( sch::IOEvent e  )  [inline]

void olsr::net::RealInterface::erase_event ( sch::IOEvent e  )  [inline]

void olsr::net::RealInterface::destroy_all_events (  )  [inline]

const sys::RealInterfaceInfo& olsr::net::RealInterface::info (  )  const [inline]

Information accessor

Returns:
Reference to the interface's system-dependent information

References info_.

pkt::Packet olsr::net::RealInterface::receive (  )  const [inline]

Packet receiver

Returns:
A received packet

References olsr::sys::Socket::receive(), and sock_.

Referenced by olsr::sch::PacketReceiver::handle().

void olsr::net::RealInterface::send ( const pkt::Packet p  )  const [inline]

Packet sender

  • p Packet to be sent

References olsr::pkt::Packet::data(), olsr::sys::Socket::sendto_bcast(), and sock_.

Referenced by olsr::sch::PacketSender::handle().

void olsr::net::RealInterface::shipout ( const pkt::Packet p  )  [inline]

unsigned olsr::net::RealInterface::queue_size (  )  const [inline]

bool olsr::net::RealInterface::operator< ( const This rhs  )  const [inline]

Less-than comparator

  • rhs The RHS operand

References addr_.

RealInterface & olsr::net::RealInterface::make_key ( const address_t a  )  [inline, static]

Search key builder

  • a Address of interface to search
    Returns:
    Reference to modified dummy_for_find_.

References addr_, and dummy_for_find_.

Referenced by olsr::set::InterfaceSet::find().

void olsr::net::RealInterface::configure (  )  [inline]

void olsr::net::RealInterface::unconfigure (  )  [inline]


Member Data Documentation

System-dependent information.

Referenced by info(), mtu(), RealInterface(), and shipout().

RealInterface address.

Referenced by addr(), make_key(), operator<(), and RealInterface().

Referenced by prefix().

Referenced by RealInterface(), and ~RealInterface().

Referenced by queue_size(), and RealInterface().

Static instance for key generation.

Referenced by make_key().


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

Generated on Thu Feb 12 20:45:38 2009 for Qolyester daemon by  doxygen 1.5.6