the ssh::Channel class describes the state of an SSH channel.
More...
#include <libssh/libsshpp.hpp>
the ssh::Channel class describes the state of an SSH channel.
- See also
- ssh_channel
Channel* ssh::Channel::acceptX11 |
( |
int |
timeout_ms | ) |
|
|
inline |
accept an incoming X11 connection
- Parameters
-
[in] | timeout_ms | timeout for waiting, in ms |
- Returns
- new Channel pointer on the X11 connection
-
NULL in case of error
- Warning
- you have to delete this pointer after use
- See also
- ssh_channel_accept_x11
-
Channel::requestX11
References ssh_channel_accept_x11().
void ssh::Channel::changePtySize |
( |
int |
cols, |
|
|
int |
rows |
|
) |
| |
|
inline |
void ssh::Channel::close |
( |
| ) |
|
|
inline |
bool ssh::Channel::isClosed |
( |
| ) |
|
|
inline |
bool ssh::Channel::isEof |
( |
| ) |
|
|
inline |
bool ssh::Channel::isOpen |
( |
| ) |
|
|
inline |
int ssh::Channel::write |
( |
const void * |
data, |
|
|
size_t |
len, |
|
|
bool |
is_stderr = false |
|
) |
| |
|
inline |
Writes on a channel.
- Parameters
-
data | data to write. |
len | number of bytes to write. |
is_stderr | write should be done on the stderr channel (server only) |
- Returns
- number of bytes written
- Exceptions
-
- See also
- channel_write
-
channel_write_stderr
References ssh_channel_write(), and ssh_channel_write_stderr().
The documentation for this class was generated from the following file:
- /Users/Rand0m/Desktop/Temp/CodeLitePrj/libssh-0.7.0/include/libssh/libsshpp.hpp