dtn::BluetoothConvergenceLayer::Listener Class Reference

#include <BluetoothConvergenceLayer.h>

Inheritance diagram for dtn::BluetoothConvergenceLayer::Listener:

dtn::CLInfo oasys::RFCOMMServerThread oasys::BluetoothServerThread oasys::BluetoothServer oasys::Thread oasys::BluetoothSocket oasys::Logger oasys::IOHandlerBase List of all members.

Detailed Description

Helper class (and thread) that listens on a registered interface for incoming data.

Definition at line 188 of file BluetoothConvergenceLayer.h.

Public Member Functions

 Listener (BluetoothConvergenceLayer *cl, BluetoothConvergenceLayer::Params *params)
 Constructor.
void accepted (int fd, bdaddr_t addr, u_int8_t channel)
 Callback handler for passive connections.

Public Attributes

BluetoothConvergenceLayer::Params params_
 Socket parameters are public fields that should be set after creating the socket but before the socket is used.
NeighborDiscoverynd_

Protected Attributes

BluetoothConvergenceLayercl_

Friends

class Connection
class ConnectionManager


Constructor & Destructor Documentation

dtn::BluetoothConvergenceLayer::Listener::Listener ( BluetoothConvergenceLayer cl,
BluetoothConvergenceLayer::Params params 
)

Constructor.

Definition at line 552 of file BluetoothConvergenceLayer.cc.

References ASSERT, BDADDR_ANY, dtn::BluetoothConvergenceLayer::Params::local_addr_, oasys::BluetoothSocket::logfd_, nd_, oasys::RFCOMMServerThread::set_accept_timeout(), oasys::BluetoothSocket::set_local_addr(), and oasys::IOHandlerBase::set_notifier().


Member Function Documentation

void dtn::BluetoothConvergenceLayer::Listener::accepted ( int  fd,
bdaddr_t  addr,
u_int8_t  channel 
) [virtual]

Callback handler for passive connections.

Implements oasys::BluetoothServerThread.

Definition at line 572 of file BluetoothConvergenceLayer.cc.

References ASSERT, cl_, oasys::BluetoothSocket::close(), Connection, oasys::BluetoothServer::listen(), dtn::BluetoothConvergenceLayer::Connection::listener_, params_, oasys::RFCOMMServerThread::rc_bind(), and oasys::Thread::start().


Friends And Related Function Documentation

friend class Connection [friend]

Definition at line 208 of file BluetoothConvergenceLayer.h.

Referenced by accepted().

friend class ConnectionManager [friend]

Definition at line 209 of file BluetoothConvergenceLayer.h.


Member Data Documentation

BluetoothConvergenceLayer::Params dtn::BluetoothConvergenceLayer::Listener::params_

Socket parameters are public fields that should be set after creating the socket but before the socket is used.

Reimplemented from oasys::BluetoothSocket.

Definition at line 203 of file BluetoothConvergenceLayer.h.

Referenced by accepted().

NeighborDiscovery* dtn::BluetoothConvergenceLayer::Listener::nd_

Definition at line 205 of file BluetoothConvergenceLayer.h.

Referenced by dtn::BluetoothConvergenceLayer::interface_down(), dtn::BluetoothConvergenceLayer::interface_up(), and Listener().

BluetoothConvergenceLayer* dtn::BluetoothConvergenceLayer::Listener::cl_ [protected]

Definition at line 210 of file BluetoothConvergenceLayer.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