oasys::RFCOMMClient Class Reference

#include <RFCOMMClient.h>

Inheritance diagram for oasys::RFCOMMClient:

oasys::BluetoothClient oasys::BluetoothSocket oasys::IOClient oasys::Logger oasys::IOHandlerBase oasys::IOHandlerBase List of all members.

Detailed Description

Definition at line 12 of file RFCOMMClient.h.

Public Member Functions

 RFCOMMClient (const char *logbase="/rfcommclient")
 RFCOMMClient (int fd, bdaddr_t remote_addr, u_int8_t remote_channel, const char *logbase="/rfcommclient")
int rc_connect (bdaddr_t remote_addr)
 Since RFCOMM channels only range from [1 .
int rc_connect ()

Static Private Attributes

static int rc_channel_


Constructor & Destructor Documentation

oasys::RFCOMMClient::RFCOMMClient ( const char *  logbase = "/rfcommclient"  )  [inline]

Definition at line 14 of file RFCOMMClient.h.

oasys::RFCOMMClient::RFCOMMClient ( int  fd,
bdaddr_t  remote_addr,
u_int8_t  remote_channel,
const char *  logbase = "/rfcommclient" 
) [inline]

Definition at line 18 of file RFCOMMClient.h.


Member Function Documentation

int oasys::RFCOMMClient::rc_connect ( bdaddr_t  remote_addr  ) 

Since RFCOMM channels only range from [1 .

. 30], scan the whole space for an available channel on the remote Bluetooth host

Definition at line 14 of file RFCOMMClient.cc.

References oasys::Bluetooth::batostr(), oasys::BluetoothSocket::bind(), oasys::BluetoothSocket::channel_, oasys::BluetoothSocket::close(), oasys::BluetoothSocket::connect(), errno, oasys::BluetoothSocket::local_addr_, log_debug, log_err, oasys::RFCOMMChannel::next(), oasys::BluetoothSocket::remote_addr_, oasys::BluetoothSocket::set_remote_addr(), and oasys::BluetoothSocket::silent_connect_.

Referenced by dtn::BluetoothConvergenceLayer::Connection::connect().

int oasys::RFCOMMClient::rc_connect (  ) 

Definition at line 95 of file RFCOMMClient.cc.

References ASSERT, BDADDR_ANY, and oasys::BluetoothSocket::remote_addr_.


Member Data Documentation

int oasys::RFCOMMClient::rc_channel_ [static, private]

Definition at line 32 of file RFCOMMClient.h.


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