8 channel(ssh_channel_new(session.get()))
21 size_t Forward_Channel::write_some(
const char *data,
size_t size)
24 const int result = ssh_channel_write(
channel, data, uint32_t(size));
26 if (result == SSH_ERROR)
27 throw Exception(
"Error writing to channel");
29 return size_t(result);
33 size_t Forward_Channel::read_some(
char *data,
size_t size)
36 const int result = ssh_channel_read_timeout
45 if (result == SSH_ERROR)
46 throw Exception(
"Error reading from channel");
49 throw Exception(
"End of file when reading from channel");
51 return size_t(result);
59 const char *remote_host,
66 ssh_channel_open_forward
82 const char *remote_path
88 ssh_channel_open_forward_unix
const ssh_channel channel
~Forward_Channel_Allocation()
Forward_Channel_Allocation(Session &session)
Forward_Channel(Session &session, const char *remote_host, uint16_t remote_port)
#define JOEDB_RELEASE_ASSERT(x)