dtn::Interface Class Reference

#include <Interface.h>

List of all members.


Detailed Description

Abstraction of a local dtn interface.

Generally, interfaces are created by the configuration file / console.

Definition at line 34 of file Interface.h.


Public Member Functions

const std::string & name () const
const std::string & proto () const
ConvergenceLayerclayer () const
CLInfocl_info () const
void set_cl_info (CLInfo *cl_info)
 Store the ConvergenceLayer specific state.

Protected Member Functions

 Interface (const std::string &name, const std::string &proto, ConvergenceLayer *clayer)
 ~Interface ()

Protected Attributes

std::string name_
 Name of the interface.
std::string proto_
 What type of CL.
ConvergenceLayerclayer_
 Convergence layer to use.
CLInfocl_info_
 Convergence layer specific state.

Friends

class InterfaceTable

Constructor & Destructor Documentation

dtn::Interface::Interface ( const std::string &  name,
const std::string &  proto,
ConvergenceLayer clayer 
) [protected]

Definition at line 22 of file Interface.cc.

dtn::Interface::~Interface (  )  [protected]

Definition at line 29 of file Interface.cc.


Member Function Documentation

const std::string& dtn::Interface::name (  )  const [inline]

Definition at line 37 of file Interface.h.

References name_.

Referenced by dtn::InterfaceTable::find(), dtn::ConvergenceLayer::interface_down(), dtn::UDPConvergenceLayer::interface_up(), dtn::TCPConvergenceLayer::interface_up(), dtn::ConvergenceLayer::interface_up(), dtn::BluetoothConvergenceLayer::interface_up(), and dtn::InterfaceTable::list().

const std::string& dtn::Interface::proto (  )  const [inline]

Definition at line 38 of file Interface.h.

References proto_.

Referenced by dtn::InterfaceTable::list().

ConvergenceLayer* dtn::Interface::clayer (  )  const [inline]

Definition at line 39 of file Interface.h.

References clayer_.

Referenced by dtn::InterfaceTable::del(), and dtn::InterfaceTable::list().

CLInfo* dtn::Interface::cl_info (  )  const [inline]

Definition at line 40 of file Interface.h.

References cl_info_.

Referenced by dtn::UDPConvergenceLayer::dump_interface(), dtn::TCPConvergenceLayer::dump_interface(), dtn::BluetoothConvergenceLayer::dump_interface(), dtn::UDPConvergenceLayer::interface_down(), dtn::TCPConvergenceLayer::interface_down(), dtn::FileConvergenceLayer::interface_down(), and dtn::BluetoothConvergenceLayer::interface_down().

void dtn::Interface::set_cl_info ( CLInfo cl_info  )  [inline]

Store the ConvergenceLayer specific state.

Definition at line 45 of file Interface.h.

References ASSERT, and cl_info_.

Referenced by dtn::UDPConvergenceLayer::interface_up(), dtn::TCPConvergenceLayer::interface_up(), and dtn::BluetoothConvergenceLayer::interface_up().


Friends And Related Function Documentation

friend class InterfaceTable [friend]

Definition at line 54 of file Interface.h.


Member Data Documentation

std::string dtn::Interface::name_ [protected]

Name of the interface.

Definition at line 61 of file Interface.h.

Referenced by name().

std::string dtn::Interface::proto_ [protected]

What type of CL.

Definition at line 62 of file Interface.h.

Referenced by proto().

ConvergenceLayer* dtn::Interface::clayer_ [protected]

Convergence layer to use.

Definition at line 63 of file Interface.h.

Referenced by clayer().

CLInfo* dtn::Interface::cl_info_ [protected]

Convergence layer specific state.

Definition at line 64 of file Interface.h.

Referenced by cl_info(), and set_cl_info().


The documentation for this class was generated from the following files:
Generated on Sat Sep 8 08:43:45 2007 for DTN Reference Implementation by  doxygen 1.5.3