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 25 of file Interface.cc.

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

Definition at line 32 of file Interface.cc.


Member Function Documentation

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

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]

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

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(), and dtn::TCPConvergenceLayer::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().

Convergence layer to use.

Definition at line 63 of file Interface.h.

Referenced by clayer().

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 Mon Jul 21 14:12:20 2008 for DTN Reference Implementation by  doxygen 1.5.6