27 #include <nidas/Config.h>
29 #ifdef HAVE_BLUETOOTH_RFCOMM_H
31 #ifndef NIDAS_CORE_BLUETOOTHRFCOMMSOCKETIODEVICE_H
32 #define NIDAS_CORE_BLUETOOTHRFCOMMSOCKETIODEVICE_H
37 namespace nidas {
namespace core {
42 class BluetoothRFCommSocketIODevice :
public SocketIODevice {
50 BluetoothRFCommSocketIODevice();
52 ~BluetoothRFCommSocketIODevice();
65 if (_socket)
return _socket->getFd();
72 int getWriteFd()
const {
73 if (_socket)
return _socket->getFd();
82 return _socket->recv(buf,
len);
88 size_t read(
void *buf,
size_t len,
int msecTimeout)
96 return _socket->send(buf,
len);
102 void close() throw(nidas::util::IOException);
107 nidas::util::BluetoothRFCommSocket* _socket;
110 BluetoothRFCommSocketIODevice(const BluetoothRFCommSocketIODevice &);
113 BluetoothRFCommSocketIODevice& operator=(const BluetoothRFCommSocketIODevice &);
int len
Definition: sing.cc:934
Definition: IOException.h:37
Definition: InvalidParameterException.h:35