Joedb 9.5.0
The Journal-Only Embedded Database
Loading...
Searching...
No Matches
Network_Connector.h
Go to the documentation of this file.
1#ifndef joedb_Network_Connector_declared
2#define joedb_Network_Connector_declared
3
6
7namespace joedb
8{
9 /// @ingroup concurrency
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
Used by Robust_Connection to reconnect after an error.
Definition Connector.h:14
std::unique_ptr< Channel > new_channel() const override
Network_Connector(std::string host, std::string service)
Definition Blob.h:7