#include <IPTunnel.h>
Definition at line 30 of file IPTunnel.h.
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. |
dtntunnel::IPTunnel::IPTunnel | ( | const char * | classname, | |
const char * | logpath | |||
) | [inline] |
virtual dtntunnel::IPTunnel::~IPTunnel | ( | ) | [inline, virtual] |
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] |
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.