Joedb
10.2.1
The Journal-Only Embedded Database
Loading...
Searching...
No Matches
src
joedb
concurrency
Websocket_Connector.h
Go to the documentation of this file.
1
#ifndef joedb_Websocket_Connector_declared
2
#define joedb_Websocket_Connector_declared
3
4
#include "
joedb/concurrency/Websocket_Channel.h
"
5
#include "
joedb/concurrency/Connector.h
"
6
7
namespace
joedb
8
{
9
/// @ingroup concurrency
10
class
Websocket_Connector
:
public
Connector
11
{
12
private
:
13
const
std::string host;
14
const
std::string port;
15
const
std::string path;
16
17
public
:
18
Websocket_Connector
19
(
20
std::string host,
21
std::string port,
22
std::string path
23
):
24
host(host),
25
port(port),
26
path(path)
27
{
28
}
29
30
std::unique_ptr<Channel>
new_channel
()
const override
31
{
32
return
std::make_unique<Websocket_Channel>(host, port, path);
33
}
34
};
35
}
36
37
#endif
Websocket_Channel.h
joedb::Connector
Used by Robust_Connection to reconnect after an error.
Definition
Connector.h:15
joedb::Websocket_Connector
Definition
Websocket_Connector.h:11
joedb::Websocket_Connector::new_channel
std::unique_ptr< Channel > new_channel() const override
Definition
Websocket_Connector.h:30
joedb::Websocket_Connector::Websocket_Connector
Websocket_Connector(std::string host, std::string port, std::string path)
Definition
Websocket_Connector.h:19
Connector.h
joedb
Definition
Server.cpp:11
Generated by
1.9.8