#include <websocket_server.hpp>
Classes | |
struct | ClientInfo |
Public Types | |
using | ConnectionType = websocketpp::connection< ServerConfiguration > |
using | MessagePtr = typename ServerType::message_ptr |
using | ServerType = websocketpp::server< ServerConfiguration > |
using | Tcp = websocketpp::lib::asio::ip::tcp |
Public Member Functions | |
std::vector< ChannelId > | addChannels (const std::vector< ChannelWithoutId > &channels) override |
std::vector< ServiceId > | addServices (const std::vector< ServiceWithoutId > &services) override |
void | broadcastTime (uint64_t timestamp) override |
uint16_t | getPort () override |
Server & | operator= (const Server &)=delete |
Server & | operator= (Server &&)=delete |
void | publishParameterValues (ConnHandle clientHandle, const std::vector< Parameter > ¶meters, const std::optional< std::string > &requestId=std::nullopt) override |
std::string | remoteEndpointString (ConnHandle clientHandle) override |
void | removeChannels (const std::vector< ChannelId > &channelIds) override |
void | removeServices (const std::vector< ServiceId > &serviceIds) override |
void | sendMessage (ConnHandle clientHandle, ChannelId chanId, uint64_t timestamp, const uint8_t *payload, size_t payloadSize) override |
void | sendServiceResponse (ConnHandle clientHandle, const ServiceResponse &response) override |
Server (std::string name, LogCallback logger, const ServerOptions &options) | |
Server (const Server &)=delete | |
Server (Server &&)=delete | |
void | setHandlers (ServerHandlers< ConnHandle > &&handlers) override |
void | start (const std::string &host, uint16_t port) override |
void | stop () override |
void | updateConnectionGraph (const MapOfSets &publishedTopics, const MapOfSets &subscribedTopics, const MapOfSets &advertisedServices) override |
void | updateParameterValues (const std::vector< Parameter > ¶meters) override |
virtual | ~Server () |
Public Member Functions inherited from foxglove::ServerInterface< ConnHandle > | |
virtual | ~ServerInterface () |
Private Member Functions | |
void | handleBinaryMessage (ConnHandle hdl, MessagePtr msg) |
void | handleConnectionClosed (ConnHandle hdl) |
void | handleConnectionOpened (ConnHandle hdl) |
void | handleMessage (ConnHandle hdl, MessagePtr msg) |
void | handleTextMessage (ConnHandle hdl, MessagePtr msg) |
bool | hasCapability (const std::string &capability) const |
bool | isParameterSubscribed (const std::string ¶mName) const |
void | sendBinary (ConnHandle hdl, const uint8_t *payload, size_t payloadSize) |
void | sendJson (ConnHandle hdl, json &&payload) |
void | sendJsonRaw (ConnHandle hdl, const std::string &payload) |
void | sendStatusAndLogMsg (ConnHandle clientHandle, const StatusLevel level, const std::string &message) |
template<> | |
void | setupTlsHandler () |
template<> | |
void | setupTlsHandler () |
void | setupTlsHandler () |
void | socketInit (ConnHandle hdl) |
void | unsubscribeParamsWithoutSubscriptions (ConnHandle hdl, const std::unordered_set< std::string > ¶mNames) |
bool | validateConnection (ConnHandle hdl) |
Definition at line 100 of file websocket_server.hpp.
using foxglove::Server< ServerConfiguration >::ConnectionType = websocketpp::connection<ServerConfiguration> |
Definition at line 103 of file websocket_server.hpp.
using foxglove::Server< ServerConfiguration >::MessagePtr = typename ServerType::message_ptr |
Definition at line 104 of file websocket_server.hpp.
using foxglove::Server< ServerConfiguration >::ServerType = websocketpp::server<ServerConfiguration> |
Definition at line 102 of file websocket_server.hpp.
using foxglove::Server< ServerConfiguration >::Tcp = websocketpp::lib::asio::ip::tcp |
Definition at line 105 of file websocket_server.hpp.
|
inlineexplicit |
Definition at line 209 of file websocket_server.hpp.
|
inlinevirtual |
Definition at line 242 of file websocket_server.hpp.
|
delete |
|
delete |
|
inlineoverridevirtual |
Implements foxglove::ServerInterface< ConnHandle >.
Definition at line 1017 of file websocket_server.hpp.
|
inlineoverridevirtual |
Implements foxglove::ServerInterface< ConnHandle >.
Definition at line 1114 of file websocket_server.hpp.
|
inlineoverridevirtual |
Implements foxglove::ServerInterface< ConnHandle >.
Definition at line 1213 of file websocket_server.hpp.
|
inlineoverridevirtual |
Implements foxglove::ServerInterface< ConnHandle >.
Definition at line 1235 of file websocket_server.hpp.
|
inlineprivate |
Definition at line 916 of file websocket_server.hpp.
|
inlineprivate |
Definition at line 317 of file websocket_server.hpp.
|
inlineprivate |
Definition at line 270 of file websocket_server.hpp.
|
inlineprivate |
Definition at line 553 of file websocket_server.hpp.
|
inlineprivate |
Definition at line 592 of file websocket_server.hpp.
|
inlineprivate |
Definition at line 1369 of file websocket_server.hpp.
|
inlineprivate |
Definition at line 1331 of file websocket_server.hpp.
|
delete |
|
delete |
|
inlineoverridevirtual |
Implements foxglove::ServerInterface< ConnHandle >.
Definition at line 1076 of file websocket_server.hpp.
|
inlineoverridevirtual |
Implements foxglove::ServerInterface< ConnHandle >.
Definition at line 1324 of file websocket_server.hpp.
|
inlineoverridevirtual |
Implements foxglove::ServerInterface< ConnHandle >.
Definition at line 1049 of file websocket_server.hpp.
|
inlineoverridevirtual |
Implements foxglove::ServerInterface< ConnHandle >.
Definition at line 1141 of file websocket_server.hpp.
|
inlineprivate |
Definition at line 526 of file websocket_server.hpp.
|
inlineprivate |
Definition at line 508 of file websocket_server.hpp.
|
inlineprivate |
Definition at line 517 of file websocket_server.hpp.
|
inlineoverridevirtual |
Implements foxglove::ServerInterface< ConnHandle >.
Definition at line 1163 of file websocket_server.hpp.
|
inlineoverridevirtual |
Implements foxglove::ServerInterface< ConnHandle >.
Definition at line 1226 of file websocket_server.hpp.
|
inlineprivate |
Definition at line 536 of file websocket_server.hpp.
|
inlineoverridevirtual |
Implements foxglove::ServerInterface< ConnHandle >.
Definition at line 384 of file websocket_server.hpp.
|
inlineprivate |
Definition at line 24 of file server_factory.cpp.
|
inlineprivate |
Definition at line 29 of file server_factory.cpp.
|
private |
|
inlineprivate |
Definition at line 245 of file websocket_server.hpp.
|
inlineoverridevirtual |
Implements foxglove::ServerInterface< ConnHandle >.
Definition at line 467 of file websocket_server.hpp.
|
inlineoverridevirtual |
Implements foxglove::ServerInterface< ConnHandle >.
Definition at line 389 of file websocket_server.hpp.
|
inlineprivate |
Definition at line 1340 of file websocket_server.hpp.
|
inlineoverridevirtual |
Implements foxglove::ServerInterface< ConnHandle >.
Definition at line 1245 of file websocket_server.hpp.
|
inlineoverridevirtual |
Implements foxglove::ServerInterface< ConnHandle >.
Definition at line 1094 of file websocket_server.hpp.
|
inlineprivate |
Definition at line 254 of file websocket_server.hpp.
|
private |
Definition at line 166 of file websocket_server.hpp.
|
private |
Definition at line 175 of file websocket_server.hpp.
|
private |
Definition at line 168 of file websocket_server.hpp.
|
private |
Definition at line 176 of file websocket_server.hpp.
|
private |
Definition at line 170 of file websocket_server.hpp.
|
private |
Definition at line 178 of file websocket_server.hpp.
|
private |
Definition at line 165 of file websocket_server.hpp.
|
private |
Definition at line 174 of file websocket_server.hpp.
struct { ... } foxglove::Server< ServerConfiguration >::_connectionGraph |
|
private |
Definition at line 186 of file websocket_server.hpp.
|
private |
Definition at line 162 of file websocket_server.hpp.
|
private |
Definition at line 173 of file websocket_server.hpp.
|
private |
Definition at line 158 of file websocket_server.hpp.
|
private |
Definition at line 157 of file websocket_server.hpp.
|
private |
Definition at line 164 of file websocket_server.hpp.
|
private |
Definition at line 171 of file websocket_server.hpp.
|
private |
Definition at line 159 of file websocket_server.hpp.
|
private |
Definition at line 160 of file websocket_server.hpp.
|
private |
Definition at line 161 of file websocket_server.hpp.
|
private |
Definition at line 172 of file websocket_server.hpp.
|
private |
Definition at line 177 of file websocket_server.hpp.
MapOfSets foxglove::Server< ServerConfiguration >::advertisedServices |
Definition at line 184 of file websocket_server.hpp.
MapOfSets foxglove::Server< ServerConfiguration >::publishedTopics |
Definition at line 182 of file websocket_server.hpp.
MapOfSets foxglove::Server< ServerConfiguration >::subscribedTopics |
Definition at line 183 of file websocket_server.hpp.
int foxglove::Server< ServerConfiguration >::subscriptionCount = 0 |
Definition at line 181 of file websocket_server.hpp.