dtntunnel::TCPTunnel::Listener Class Reference

#include <TCPTunnel.h>

Inheritance diagram for dtntunnel::TCPTunnel::Listener:

oasys::TCPServerThread oasys::TCPServer oasys::Thread oasys::IPSocket oasys::Logger oasys::IOHandlerBase List of all members.

Detailed Description

Helper class to accept incoming TCP connections.

Definition at line 52 of file TCPTunnel.h.

Public Member Functions

 Listener (TCPTunnel *t, in_addr_t listen_addr, u_int16_t listen_port, in_addr_t remote_addr, u_int16_t remote_port)
void accepted (int fd, in_addr_t addr, u_int16_t port)
 Virtual callback hook that gets called when new connections arrive.

Protected Attributes

TCPTunneltcptun_
in_addr_t listen_addr_
 Proxy parameters.
u_int16_t listen_port_
 Proxy parameters.
in_addr_t remote_addr_
 Proxy parameters.
u_int16_t remote_port_
 Proxy parameters.


Constructor & Destructor Documentation

dtntunnel::TCPTunnel::Listener::Listener ( TCPTunnel t,
in_addr_t  listen_addr,
u_int16_t  listen_port,
in_addr_t  remote_addr,
u_int16_t  remote_port 
)

Definition at line 137 of file TCPTunnel.cc.

References oasys::TCPServerThread::bind_listen_start().


Member Function Documentation

void dtntunnel::TCPTunnel::Listener::accepted ( int  fd,
in_addr_t  addr,
u_int16_t  port 
) [virtual]

Virtual callback hook that gets called when new connections arrive.

Implements oasys::TCPServerThread.

Definition at line 154 of file TCPTunnel.cc.

References dtntunnel::TCPTunnel::new_connection(), remote_addr_, remote_port_, oasys::Thread::start(), and tcptun_.


Member Data Documentation

TCPTunnel* dtntunnel::TCPTunnel::Listener::tcptun_ [protected]

Definition at line 61 of file TCPTunnel.h.

Referenced by accepted().

in_addr_t dtntunnel::TCPTunnel::Listener::listen_addr_ [protected]

Proxy parameters.

Definition at line 65 of file TCPTunnel.h.

u_int16_t dtntunnel::TCPTunnel::Listener::listen_port_ [protected]

Proxy parameters.

Definition at line 66 of file TCPTunnel.h.

in_addr_t dtntunnel::TCPTunnel::Listener::remote_addr_ [protected]

Proxy parameters.

Reimplemented from oasys::IPSocket.

Definition at line 67 of file TCPTunnel.h.

Referenced by accepted().

u_int16_t dtntunnel::TCPTunnel::Listener::remote_port_ [protected]

Proxy parameters.

Reimplemented from oasys::IPSocket.

Definition at line 68 of file TCPTunnel.h.

Referenced by accepted().


The documentation for this class was generated from the following files:
Generated on Thu Jun 7 16:56:59 2007 for DTN Reference Implementation by  doxygen 1.5.1