Abstraction of a local dtn interface. More...
#include <Interface.h>
Public Member Functions | |
| const std::string & | name () const |
| const std::string & | proto () const |
| ConvergenceLayer * | clayer () const |
| CLInfo * | cl_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. | |
| ConvergenceLayer * | clayer_ |
| Convergence layer to use. | |
| CLInfo * | cl_info_ |
| Convergence layer specific state. | |
Friends | |
| class | InterfaceTable |
Abstraction of a local dtn interface.
Generally, interfaces are created by the configuration file / console.
Definition at line 34 of file Interface.h.
| dtn::Interface::Interface | ( | const std::string & | name, | |
| const std::string & | proto, | |||
| ConvergenceLayer * | clayer | |||
| ) | [protected] |
Definition at line 24 of file Interface.cc.
| dtn::Interface::~Interface | ( | ) | [protected] |
Definition at line 31 of file Interface.cc.
| 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::UDPConvergenceLayer::interface_down(), dtn::TCPConvergenceLayer::interface_down(), and dtn::FileConvergenceLayer::interface_down().
| ConvergenceLayer* dtn::Interface::clayer | ( | ) | const [inline] |
Definition at line 39 of file Interface.h.
References clayer_.
| const std::string& dtn::Interface::name | ( | ) | const [inline] |
Definition at line 37 of file Interface.h.
References name_.
Referenced by dtn::ConvergenceLayer::interface_down(), dtn::UDPConvergenceLayer::interface_up(), dtn::TCPConvergenceLayer::interface_up(), and dtn::ConvergenceLayer::interface_up().
| const std::string& dtn::Interface::proto | ( | ) | const [inline] |
Definition at line 38 of file Interface.h.
References proto_.
| 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().
friend class InterfaceTable [friend] |
Definition at line 54 of file Interface.h.
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().
ConvergenceLayer* dtn::Interface::clayer_ [protected] |
std::string dtn::Interface::name_ [protected] |
std::string dtn::Interface::proto_ [protected] |
1.6.3