Joedb 10.2.1
The Journal-Only Embedded Database
Loading...
Searching...
No Matches
Websocket_Channel.h
Go to the documentation of this file.
1#ifdef JOEDB_HAS_WEBSOCKETS
2#ifndef joedb_Websocket_Channel_declared
3#define joedb_Websocket_Channel_declared
4
6
7#include <string>
8#include <memory>
9
10namespace joedb
11{
12 namespace detail
13 {
14 class Websocket_Channel;
15 }
16
17 /// Channel to communicate with a (secure) Websocket
18 ///
19 /// @ingroup concurrency
21 {
22 private:
23 const std::unique_ptr<detail::Websocket_Channel> p;
24
25 public:
27 (
28 const std::string &host,
29 const std::string &port,
30 const std::string &path
31 );
32
33 size_t write_some(const char *data, size_t size) override;
34 size_t read_some(char *data, size_t size) override;
35
37 };
38}
39
40#endif
41#endif
Channel to communicate with a (secure) Websocket.
size_t write_some(const char *data, size_t size) override
size_t read_some(char *data, size_t size) override