00001 #ifndef _OASYS_RFCOMM_CLIENT_H_
00002 #define _OASYS_RFCOMM_CLIENT_H_
00003
00004 #include "config.h"
00005
00006 #ifdef OASYS_BLUETOOTH_ENABLED
00007
00008 #include "BluetoothClient.h"
00009
00010 namespace oasys {
00011
00012 class RFCOMMClient : public BluetoothClient {
00013 public:
00014 RFCOMMClient(const char* logbase = "/rfcommclient")
00015 : BluetoothClient(SOCK_STREAM,BluetoothSocket::RFCOMM,logbase)
00016 {
00017 }
00018 RFCOMMClient(int fd, bdaddr_t remote_addr, u_int8_t remote_channel,
00019 const char* logbase = "/rfcommclient")
00020 : BluetoothClient(SOCK_STREAM,BluetoothSocket::RFCOMM,fd,remote_addr,
00021 remote_channel,logbase)
00022
00023 {
00024 }
00029 int rc_connect(bdaddr_t remote_addr);
00030 int rc_connect();
00031 private:
00032 static int rc_channel_;
00033 };
00034
00035 }
00036
00037 #endif
00038 #endif