#include <include/libssh/libsshpp.hpp>
Public Member Functions | ||||
| Channel * | acceptX11 (int timeout_ms) | |||
| accept an incoming X11 connection | ||||
| void | changePtySize (int cols, int rows) | |||
| change the size of a pseudoterminal | ||||
| void | close () | |||
closes a channel
| ||||
| bool | isClosed () | |||
| returns true if channel is in closed state | ||||
| bool | isEof () | |||
| returns true if channel is in EOF state | ||||
| bool | isOpen () | |||
| returns true if channel is in open state | ||||
| int | write (const void *data, size_t len, bool is_stderr=false) | |||
| Writes on a channel. | ||||
| Channel* ssh::Channel::acceptX11 | ( | int | timeout_ms | ) | [inline] |
accept an incoming X11 connection
| [in] | timeout_ms | timeout for waiting, in ms |
NULL in case of error
Channel::requestX11
| void ssh::Channel::changePtySize | ( | int | cols, | |
| int | rows | |||
| ) | [inline] |
change the size of a pseudoterminal
| [in] | cols | number of columns |
| [in] | rows | number of rows |
| SshException | on error |
| 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.
| data | data to write. | |
| len | number of bytes to write. | |
| is_stderr | write should be done on the stderr channel (server only) |
| SshException | in case of error |
channel_write_stderr
1.4.7