dtn::TCPConvergenceLayer::Listener Class Reference

#include <TCPConvergenceLayer.h>

Inheritance diagram for dtn::TCPConvergenceLayer::Listener:

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

Detailed Description

Helper class (and thread) that listens on a registered interface for new connections.

Definition at line 114 of file TCPConvergenceLayer.h.

Public Member Functions

 Listener (TCPConvergenceLayer *cl)
void accepted (int fd, in_addr_t addr, u_int16_t port)
 Virtual callback hook that gets called when new connections arrive.

Public Attributes

TCPConvergenceLayercl_
 The TCPCL instance.


Constructor & Destructor Documentation

dtn::TCPConvergenceLayer::Listener::Listener ( TCPConvergenceLayer cl  ) 

Definition at line 267 of file TCPConvergenceLayer.cc.

References oasys::IPSocket::logfd_.


Member Function Documentation

void dtn::TCPConvergenceLayer::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 278 of file TCPConvergenceLayer.cc.

References cl_, dtn::TCPConvergenceLayer::default_link_params_, intoa, and log_debug.


Member Data Documentation

TCPConvergenceLayer* dtn::TCPConvergenceLayer::Listener::cl_

The TCPCL instance.

Definition at line 120 of file TCPConvergenceLayer.h.

Referenced by accepted().


The documentation for this class was generated from the following files:
Generated on Fri Dec 22 14:48:04 2006 for DTN Reference Implementation by  doxygen 1.5.1