dtntunnel::UDPTunnel Class Reference

#include <UDPTunnel.h>

Inheritance diagram for dtntunnel::UDPTunnel:

dtntunnel::IPTunnel oasys::Logger

List of all members.


Detailed Description

Definition at line 34 of file UDPTunnel.h.


Public Member Functions

 UDPTunnel ()
 Constructor.
void add_listener (in_addr_t listen_addr, u_int16_t listen_port, in_addr_t remote_addr, u_int16_t remote_port)
 Add a new listener.
void handle_bundle (dtn::APIBundle *bundle)
 Handle a newly arriving bundle.

Protected Attributes

oasys::UDPClient sock_
 Sender socket.

Classes

class  Listener
 Helper class to handle a proxied UDP port. More...

Constructor & Destructor Documentation

dtntunnel::UDPTunnel::UDPTunnel (  ) 

Constructor.

Definition at line 26 of file UDPTunnel.cc.

References oasys::IPSocket::init_socket(), and sock_.


Member Function Documentation

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

Add a new listener.

Implements dtntunnel::IPTunnel.

Definition at line 35 of file UDPTunnel.cc.

Referenced by dtntunnel::DTNTunnel::init_tunnel().

void dtntunnel::UDPTunnel::handle_bundle ( dtn::APIBundle bundle  )  [virtual]

Handle a newly arriving bundle.

Implements dtntunnel::IPTunnel.

Definition at line 44 of file UDPTunnel.cc.

References oasys::ScratchBuffer< _memory_t, _static_size >::buf(), errno, intoa, oasys::ExpandableBuffer::len(), log_err, log_info, dtn::APIBundle::payload_, dtntunnel::DTNTunnel::BundleHeader::remote_addr_, dtntunnel::DTNTunnel::BundleHeader::remote_port_, oasys::IPSocket::sendto(), and sock_.

Referenced by dtntunnel::DTNTunnel::handle_bundle().


Member Data Documentation

oasys::UDPClient dtntunnel::UDPTunnel::sock_ [protected]

Sender socket.

Definition at line 48 of file UDPTunnel.h.

Referenced by handle_bundle(), and UDPTunnel().


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