27#include <nidas/Config.h>
29#ifdef HAVE_BLUETOOTH_RFCOMM_H
31#ifndef NIDAS_CORE_BLUETOOTHRFCOMMSOCKETIODEVICE_H
32#define NIDAS_CORE_BLUETOOTHRFCOMMSOCKETIODEVICE_H
37namespace nidas {
namespace core {
42class BluetoothRFCommSocketIODevice :
public SocketIODevice {
67 if (_socket)
return _socket->getFd();
74 int getWriteFd()
const {
75 if (_socket)
return _socket->getFd();
84 size_t read(
void *buf,
size_t len)
86 return _socket->recv(buf,
len);
94 size_t read(
void *buf,
size_t len,
int msecTimeout);
101 size_t write(
const void *buf,
size_t len)
103 return _socket->send(buf,
len);
115 nidas::util::BluetoothRFCommSocket* _socket;
121 BluetoothRFCommSocketIODevice& operator=(
const BluetoothRFCommSocketIODevice &);
Sample * getSample(sampleType type, unsigned int len)
A convienence method for getting a sample of an enumerated type from a pool.
Definition Sample.cc:70
Root namespace for the NCAR In-Situ Data Acquisition Software.
Definition A2DConverter.h:31
int len
Definition sing.cc:948