#include <TCPTunnel.h>
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 | |
TCPTunnel * | tcptun_ |
in_addr_t | listen_addr_ |
u_int16_t | listen_port_ |
in_addr_t | remote_addr_ |
u_int16_t | remote_port_ |
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().
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_.
TCPTunnel* dtntunnel::TCPTunnel::Listener::tcptun_ [protected] |
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().