#include <UDPTunnel.h>
Classes | |
| class | Listener |
| Helper class to handle a proxied UDP port. More... | |
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. | |
Definition at line 34 of file UDPTunnel.h.
| dtntunnel::UDPTunnel::UDPTunnel | ( | ) |
| 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 38 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 47 of file UDPTunnel.cc.
References errno, len, dtn::APIBundle::payload_, dtntunnel::DTNTunnel::BundleHeader::remote_addr_, dtntunnel::DTNTunnel::BundleHeader::remote_port_, and sock_.
Referenced by dtntunnel::DTNTunnel::handle_bundle().
oasys::UDPClient dtntunnel::UDPTunnel::sock_ [protected] |
Sender socket.
Definition at line 48 of file UDPTunnel.h.
Referenced by handle_bundle(), and UDPTunnel().
1.6.3