Joedb 10.0.1
The Journal-Only Embedded Database
Loading...
Searching...
No Matches
Forward_Channel.h
Go to the documentation of this file.
1#ifndef joedb_ssh_Forward_Channel_declared
2#define joedb_ssh_Forward_Channel_declared
3
5#include "joedb/ssh/Session.h"
6
7#include <chrono>
8
9namespace joedb::ssh
10{
22
23 /// @ingroup concurrency
26 public joedb::Channel
27 {
28 private:
29 size_t write_some(const char *data, size_t size) override;
30 size_t read_some(char *data, size_t size) override;
31 std::chrono::milliseconds timeout = std::chrono::minutes{30};
32
33 public:
35 (
36 Session &session,
37 const char *remote_host,
38 uint16_t remote_port
39 );
40
42 (
43 Session &session,
44 const char *remote_path
45 );
46
47 void set_timeout(std::chrono::milliseconds ms)
48 {
49 timeout = ms;
50 }
51 };
52}
53
54#endif
Forward_Channel_Allocation & operator=(const Forward_Channel_Allocation &)=delete
Forward_Channel_Allocation(const Forward_Channel_Allocation &)=delete
void set_timeout(std::chrono::milliseconds ms)
C++ wrappers for libssh.
Definition Connector.h:8