#include <RFCOMMClient.h>
Inheritance diagram for oasys::RFCOMMClient:
Definition at line 28 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_ |
oasys::RFCOMMClient::RFCOMMClient | ( | const char * | logbase = "/rfcommclient" |
) | [inline] |
Definition at line 30 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 34 of file RFCOMMClient.h.
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 30 of file RFCOMMClient.cc.
References bd2str, oasys::BluetoothSocket::bind(), oasys::BluetoothSocket::channel_, oasys::BluetoothSocket::close(), oasys::BluetoothSocket::connect(), errno, oasys::BluetoothSocket::local_addr_, log_debug, log_err, oasys::BluetoothSocket::params_, oasys::BluetoothSocket::remote_addr_, oasys::BluetoothSocket::set_remote_addr(), and oasys::BluetoothSocket::bluetooth_socket_params::silent_connect_.
int oasys::RFCOMMClient::rc_connect | ( | ) |
Definition at line 97 of file RFCOMMClient.cc.
References ASSERT, BDADDR_ANY, and oasys::BluetoothSocket::remote_addr_.
int oasys::RFCOMMClient::rc_channel_ [static, private] |
Definition at line 48 of file RFCOMMClient.h.