dtntunnel::IPTunnel Class Reference

Pure virtual base class for tunneling of IP protocols. More...

#include <IPTunnel.h>

Inheritance diagram for dtntunnel::IPTunnel:

dtntunnel::TCPTunnel dtntunnel::UDPTunnel

List of all members.

Public Member Functions

 IPTunnel (const char *classname, const char *logpath)
 Constructor.
virtual ~IPTunnel ()
 Destructor.
virtual void add_listener (in_addr_t listen_addr, u_int16_t listen_port, in_addr_t remote_addr, u_int16_t remote_port)=0
 Add a new listener.
virtual void handle_bundle (dtn::APIBundle *data)=0
 Handle a newly arriving bundle.


Detailed Description

Pure virtual base class for tunneling of IP protocols.

Definition at line 30 of file IPTunnel.h.


Constructor & Destructor Documentation

dtntunnel::IPTunnel::IPTunnel ( const char *  classname,
const char *  logpath 
) [inline]

Constructor.

Definition at line 33 of file IPTunnel.h.

virtual dtntunnel::IPTunnel::~IPTunnel (  )  [inline, virtual]

Destructor.

Definition at line 37 of file IPTunnel.h.


Member Function Documentation

virtual void dtntunnel::IPTunnel::add_listener ( in_addr_t  listen_addr,
u_int16_t  listen_port,
in_addr_t  remote_addr,
u_int16_t  remote_port 
) [pure virtual]

Add a new listener.

Implemented in dtntunnel::TCPTunnel, and dtntunnel::UDPTunnel.

virtual void dtntunnel::IPTunnel::handle_bundle ( dtn::APIBundle data  )  [pure virtual]

Handle a newly arriving bundle.

The tunnel should take ownership of the bundle structure and handle cleanup.

Implemented in dtntunnel::TCPTunnel, and dtntunnel::UDPTunnel.


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

Generated on Fri Jan 30 09:27:05 2009 for DTN Reference Implementation by  doxygen 1.5.8