00001 #ifndef BOOST_ASIO_BLUETOOTH_RFCOMM_HPP__
00002 #define BOOST_ASIO_BLUETOOTH_RFCOMM_HPP__
00003
00004 #include "bluetooth_endpoint.hpp"
00005
00006 #include <bluetooth/bluetooth.h>
00007 #include <bluetooth/rfcomm.h>
00008
00009 namespace boost {
00010 namespace asio {
00011 namespace bluetooth {
00012
00018 class rfcomm {
00019 public:
00021 typedef bluetooth_endpoint<rfcomm> endpoint;
00022
00025 static rfcomm get() {
00026 return rfcomm();
00027 }
00028
00030 int type() const {
00031 return SOCK_STREAM;
00032 }
00033
00035 int protocol() const {
00036 return BTPROTO_RFCOMM;
00037 }
00038
00040 int family() const {
00041 return AF_BLUETOOTH;
00042 }
00043
00045 typedef basic_stream_socket<rfcomm> socket;
00046
00048 typedef basic_socket_acceptor<rfcomm> acceptor;
00049
00050 };
00051
00052 }}}
00053
00054 #endif