2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
42#ifndef NET_RC_SOCKETADDRESS_H
43#define NET_RC_SOCKETADDRESS_H
45#include "net/SocketAddress.h"
49#ifndef DOXYGEN_SHOULD_SKIP_THIS
51#include <bluetooth/bluetooth.h>
52#include <bluetooth/rfcomm.h>
73 SocketAddress&
setBtAddress(
const std::string& btAddress);
79 std::string
toString(
bool expanded =
true)
const override;
88extern template class net::SocketAddress<sockaddr_rc>;
Config & getConfig() const
static constexpr int DISABLED
static constexpr int ERROR
static constexpr int FATAL
const SocketServer & listen(const std::function< void(const SocketAddress &, core::socket::State)> &onStatus) const
std::list< std::string > getRoutes() const
WebAppT(const std::string &name, const Router &router)
uint8_t getChannel() const
SocketAddress & setChannel(uint8_t channel)
SocketAddress(const std::string &btAddress, uint8_t channel)
std::string toString(bool expanded=true) const override
net::SocketAddress< sockaddr_rc > Super
SocketAddress(const std::string &btAddress)
SocketAddress & setBtAddress(const std::string &btAddress)
SocketAddress(const SockAddr &sockAddr, SockLen sockAddrLen)
std::string getBtAddress() const
SocketAddress(uint8_t channel)
~PhysicalSocket() override
PhysicalSocket(int type, int protocol)
PhysicalSocket(PhysicalSocket &&) noexcept=default
PhysicalPeerSocketT< net::rc::SocketAddress > Super
net::rc::phy::stream::PhysicalSocket< net::phy::stream::PhysicalSocketServer > Super
~PhysicalSocketServer() override
PhysicalSocketServer(PhysicalSocketServer &&) noexcept=default
~PhysicalSocket() override
net::rc::phy::PhysicalSocket< PhysicalPeerSocketT > Super
PhysicalSocket(PhysicalSocket &&) noexcept=default
const Super & listen(uint8_t channel, int backlog, const std::function< void(const SocketAddress &, core::socket::State)> &onStatus) const
const Super & listen(const std::string &btAddress, uint8_t channel, int backlog, const std::function< void(const SocketAddress &, core::socket::State)> &onStatus) const
const Super & listen(uint8_t channel, const std::function< void(const SocketAddress &, core::socket::State)> &onStatus) const
const Super & listen(const std::string &btAddress, uint8_t channel, const std::function< void(const SocketAddress &, core::socket::State)> &onStatus) const
core::socket::stream:: SocketServer< SocketAcceptorT< net::rc::phy::stream::PhysicalSocketServer, ConfigSocketServerT >, SocketContextFactoryT, Args... > Super
WebApp Server(const std::string &instanceName, const express::Router &router, const std::function< void(WebApp::Config &)> &configurator)
WebApp Server(const std::string &instanceName, const express::Router &router, const std::function< void(const std::string &, WebApp::SocketAddress, const core::socket::State &)> &reportState, const std::function< void(typename WebApp::Config &)> &configurator)
WebApp Server(const std::string &instanceName, const std::function< void(const std::string &, WebApp::SocketAddress, const core::socket::State &)> &reportState, const std::function< void(typename WebApp::Config &)> &configurator)
WebApp Server(const std::string &instanceName, const std::function< void(WebApp::Config &)> &configurator)
WebAppT< web::http::legacy::rc::Server > WebApp
SocketServer< SocketContextFactory, SocketContextFactoryArgs... > Server(const std::string &instanceName, const std::function< void(typename SocketServer< SocketContextFactory, SocketContextFactoryArgs... >::Config &)> &configurator, SocketContextFactoryArgs &&... socketContextFactoryArgs)
net::rc::stream::SocketServer< core::socket::stream::legacy::SocketAcceptor, net::rc::stream::legacy::config::ConfigSocketServer, SocketContextFactoryT, Args... > SocketServer
SocketServer< SocketContextFactory, SocketContextFactoryArgs... > Server(const std::string &instanceName, SocketContextFactoryArgs &&... socketContextFactoryArgs)
web::http::server::Server< net::rc::stream::legacy::SocketServer > Server