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