#include <BluetoothClient.h>
Inheritance diagram for oasys::BluetoothClient:
Definition at line 31 of file BluetoothClient.h.
Public Member Functions | |
BluetoothClient (int socktype, BluetoothSocket::proto_t proto, const char *logbase, Notifier *intr=0) | |
BluetoothClient (int socktype, BluetoothSocket::proto_t proto, int fd, bdaddr_t remote_addr, u_int8_t remote_channel, const char *logbase, Notifier *intr=0) | |
virtual | ~BluetoothClient () |
virtual int | read (char *bp, size_t len) |
System call wrappers. | |
virtual int | write (const char *bp, size_t len) |
System call wrappers. | |
virtual int | readv (const struct iovec *iov, int iovcnt) |
System call wrappers. | |
virtual int | writev (const struct iovec *iov, int iovcnt) |
System call wrappers. | |
virtual int | readall (char *bp, size_t len) |
Read/write out the entire supplied buffer, potentially requiring multiple system calls. | |
virtual int | writeall (const char *bp, size_t len) |
Read/write out the entire supplied buffer, potentially requiring multiple system calls. | |
virtual int | readvall (const struct iovec *iov, int iovcnt) |
Read/write out the entire supplied buffer, potentially requiring multiple system calls. | |
virtual int | writevall (const struct iovec *iov, int iovcnt) |
Read/write out the entire supplied buffer, potentially requiring multiple system calls. | |
virtual int | timeout_read (char *bp, size_t len, int timeout_ms) |
Try to read/write the specified number of bytes, but don't block for more than timeout milliseconds. | |
virtual int | timeout_readv (const struct iovec *iov, int iovcnt, int timeout_ms) |
Try to read/write the specified number of bytes, but don't block for more than timeout milliseconds. | |
virtual int | timeout_readall (char *bp, size_t len, int timeout_ms) |
Try to read/write the specified number of bytes, but don't block for more than timeout milliseconds. | |
virtual int | timeout_readvall (const struct iovec *iov, int iovcnt, int timeout_ms) |
Try to read/write the specified number of bytes, but don't block for more than timeout milliseconds. | |
virtual int | timeout_write (const char *bp, size_t len, int timeout_ms) |
Try to read/write the specified number of bytes, but don't block for more than timeout milliseconds. | |
virtual int | timeout_writev (const struct iovec *iov, int iovcnt, int timeout_ms) |
Try to read/write the specified number of bytes, but don't block for more than timeout milliseconds. | |
virtual int | timeout_writeall (const char *bp, size_t len, int timeout_ms) |
Try to read/write the specified number of bytes, but don't block for more than timeout milliseconds. | |
virtual int | timeout_writevall (const struct iovec *iov, int iovcnt, int timeout_ms) |
Try to read/write the specified number of bytes, but don't block for more than timeout milliseconds. | |
virtual int | get_nonblocking (bool *nonblockingp) |
Set the file descriptor's nonblocking status. | |
virtual int | set_nonblocking (bool nonblocking) |
oasys::BluetoothClient::BluetoothClient | ( | int | socktype, | |
BluetoothSocket::proto_t | proto, | |||
const char * | logbase, | |||
Notifier * | intr = 0 | |||
) |
Definition at line 27 of file BluetoothClient.cc.
oasys::BluetoothClient::BluetoothClient | ( | int | socktype, | |
BluetoothSocket::proto_t | proto, | |||
int | fd, | |||
bdaddr_t | remote_addr, | |||
u_int8_t | remote_channel, | |||
const char * | logbase, | |||
Notifier * | intr = 0 | |||
) |
Definition at line 34 of file BluetoothClient.cc.
oasys::BluetoothClient::~BluetoothClient | ( | ) | [virtual] |
Definition at line 44 of file BluetoothClient.cc.
int oasys::BluetoothClient::read | ( | char * | bp, | |
size_t | len | |||
) | [virtual] |
System call wrappers.
Implements oasys::IOClient.
Definition at line 49 of file BluetoothClient.cc.
References oasys::BluetoothSocket::fd_, oasys::IOHandlerBase::get_notifier(), oasys::Logger::logpath_, and oasys::IO::read().
Referenced by dtn::BluetoothConvergenceLayer::Connection::recv_data().
int oasys::BluetoothClient::write | ( | const char * | bp, | |
size_t | len | |||
) | [virtual] |
System call wrappers.
Implements oasys::IOClient.
Definition at line 61 of file BluetoothClient.cc.
References oasys::BluetoothSocket::fd_, oasys::IOHandlerBase::get_notifier(), oasys::Logger::logpath_, and oasys::IO::write().
Referenced by dtn::BluetoothConvergenceLayer::Connection::send_data().
int oasys::BluetoothClient::readv | ( | const struct iovec * | iov, | |
int | iovcnt | |||
) | [virtual] |
System call wrappers.
Implements oasys::IOClient.
Definition at line 55 of file BluetoothClient.cc.
References oasys::BluetoothSocket::fd_, oasys::IOHandlerBase::get_notifier(), oasys::Logger::logpath_, and oasys::IO::readv().
int oasys::BluetoothClient::writev | ( | const struct iovec * | iov, | |
int | iovcnt | |||
) | [virtual] |
System call wrappers.
Implements oasys::IOClient.
Definition at line 67 of file BluetoothClient.cc.
References oasys::BluetoothSocket::fd_, oasys::IOHandlerBase::get_notifier(), oasys::Logger::logpath_, and oasys::IO::writev().
int oasys::BluetoothClient::readall | ( | char * | bp, | |
size_t | len | |||
) | [virtual] |
Read/write out the entire supplied buffer, potentially requiring multiple system calls.
Implements oasys::IOClient.
Definition at line 73 of file BluetoothClient.cc.
References oasys::BluetoothSocket::fd_, oasys::IOHandlerBase::get_notifier(), oasys::Logger::logpath_, and oasys::IO::readall().
int oasys::BluetoothClient::writeall | ( | const char * | bp, | |
size_t | len | |||
) | [virtual] |
Read/write out the entire supplied buffer, potentially requiring multiple system calls.
Implements oasys::IOClient.
Definition at line 79 of file BluetoothClient.cc.
References oasys::BluetoothSocket::fd_, oasys::IOHandlerBase::get_notifier(), oasys::Logger::logpath_, and oasys::IO::writeall().
int oasys::BluetoothClient::readvall | ( | const struct iovec * | iov, | |
int | iovcnt | |||
) | [virtual] |
Read/write out the entire supplied buffer, potentially requiring multiple system calls.
Implements oasys::IOClient.
Definition at line 85 of file BluetoothClient.cc.
References oasys::BluetoothSocket::fd_, oasys::IOHandlerBase::get_notifier(), oasys::Logger::logpath_, and oasys::IO::readvall().
int oasys::BluetoothClient::writevall | ( | const struct iovec * | iov, | |
int | iovcnt | |||
) | [virtual] |
Read/write out the entire supplied buffer, potentially requiring multiple system calls.
Implements oasys::IOClient.
Definition at line 91 of file BluetoothClient.cc.
References oasys::BluetoothSocket::fd_, oasys::IOHandlerBase::get_notifier(), oasys::Logger::logpath_, and oasys::IO::writevall().
int oasys::BluetoothClient::timeout_read | ( | char * | bp, | |
size_t | len, | |||
int | timeout_ms | |||
) | [virtual] |
Try to read/write the specified number of bytes, but don't block for more than timeout milliseconds.
Implements oasys::IOClient.
Definition at line 97 of file BluetoothClient.cc.
References oasys::BluetoothSocket::fd_, oasys::IOHandlerBase::get_notifier(), oasys::Logger::logpath_, and oasys::IO::timeout_read().
int oasys::BluetoothClient::timeout_readv | ( | const struct iovec * | iov, | |
int | iovcnt, | |||
int | timeout_ms | |||
) | [virtual] |
Try to read/write the specified number of bytes, but don't block for more than timeout milliseconds.
Implements oasys::IOClient.
Definition at line 104 of file BluetoothClient.cc.
References oasys::BluetoothSocket::fd_, oasys::IOHandlerBase::get_notifier(), oasys::Logger::logpath_, and oasys::IO::timeout_readv().
int oasys::BluetoothClient::timeout_readall | ( | char * | bp, | |
size_t | len, | |||
int | timeout_ms | |||
) | [virtual] |
Try to read/write the specified number of bytes, but don't block for more than timeout milliseconds.
Implements oasys::IOClient.
Definition at line 113 of file BluetoothClient.cc.
References oasys::BluetoothSocket::fd_, oasys::IOHandlerBase::get_notifier(), oasys::Logger::logpath_, and oasys::IO::timeout_readall().
int oasys::BluetoothClient::timeout_readvall | ( | const struct iovec * | iov, | |
int | iovcnt, | |||
int | timeout_ms | |||
) | [virtual] |
Try to read/write the specified number of bytes, but don't block for more than timeout milliseconds.
Implements oasys::IOClient.
Definition at line 120 of file BluetoothClient.cc.
References oasys::BluetoothSocket::fd_, oasys::IOHandlerBase::get_notifier(), oasys::Logger::logpath_, and oasys::IO::timeout_readvall().
int oasys::BluetoothClient::timeout_write | ( | const char * | bp, | |
size_t | len, | |||
int | timeout_ms | |||
) | [virtual] |
Try to read/write the specified number of bytes, but don't block for more than timeout milliseconds.
Implements oasys::IOClient.
Definition at line 128 of file BluetoothClient.cc.
References oasys::BluetoothSocket::fd_, oasys::IOHandlerBase::get_notifier(), oasys::Logger::logpath_, and oasys::IO::timeout_write().
int oasys::BluetoothClient::timeout_writev | ( | const struct iovec * | iov, | |
int | iovcnt, | |||
int | timeout_ms | |||
) | [virtual] |
Try to read/write the specified number of bytes, but don't block for more than timeout milliseconds.
Implements oasys::IOClient.
Definition at line 136 of file BluetoothClient.cc.
References oasys::BluetoothSocket::fd_, oasys::IOHandlerBase::get_notifier(), oasys::Logger::logpath_, and oasys::IO::timeout_writev().
int oasys::BluetoothClient::timeout_writeall | ( | const char * | bp, | |
size_t | len, | |||
int | timeout_ms | |||
) | [virtual] |
Try to read/write the specified number of bytes, but don't block for more than timeout milliseconds.
Implements oasys::IOClient.
Definition at line 144 of file BluetoothClient.cc.
References oasys::BluetoothSocket::fd_, oasys::IOHandlerBase::get_notifier(), oasys::Logger::logpath_, and oasys::IO::timeout_writeall().
int oasys::BluetoothClient::timeout_writevall | ( | const struct iovec * | iov, | |
int | iovcnt, | |||
int | timeout_ms | |||
) | [virtual] |
Try to read/write the specified number of bytes, but don't block for more than timeout milliseconds.
Implements oasys::IOClient.
Definition at line 152 of file BluetoothClient.cc.
References oasys::BluetoothSocket::fd_, oasys::IOHandlerBase::get_notifier(), oasys::Logger::logpath_, and oasys::IO::timeout_writevall().
int oasys::BluetoothClient::get_nonblocking | ( | bool * | nonblockingp | ) | [virtual] |
Set the file descriptor's nonblocking status.
Implements oasys::IOClient.
Definition at line 160 of file BluetoothClient.cc.
References oasys::BluetoothSocket::fd_, oasys::IO::get_nonblocking(), and oasys::Logger::logpath_.
int oasys::BluetoothClient::set_nonblocking | ( | bool | nonblocking | ) | [virtual] |
Implements oasys::IOClient.
Definition at line 166 of file BluetoothClient.cc.
References ASSERT, oasys::BluetoothSocket::fd_, oasys::Logger::logpath_, and oasys::IO::set_nonblocking().
Referenced by dtn::BluetoothConvergenceLayer::Connection::connect(), and dtn::BluetoothConvergenceLayer::Connection::Connection().