|
libsshpp v0.1.7
Modern C++17 wrapper for libssh
|
#include <shell.hpp>
Classes | |
| struct | Options |
Public Member Functions | |
| Shell (Session &, Options options) | |
| Result< void > | try_start () |
| Channel & | channel () noexcept |
| Result< std::size_t > | try_write (std::string_view data) |
| Result< std::string > | try_read (std::chrono::milliseconds timeout, Stream stream=Stream::stdout_) |
| Result< void > | try_resize (PtySize) |
| Result< void > | try_send_signal (Signal) |
An interactive channel: pty + shell requests, then either manual try_write()/try_read() or (with LIBSSHPP_WITH_CONSOLE) a full terminal relay.
| SSHPP_INLINE Result< void > sshpp::Shell::try_start | ( | ) |
|
inlinenoexcept |
| SSHPP_INLINE Result< std::size_t > sshpp::Shell::try_write | ( | std::string_view | data | ) |
| SSHPP_INLINE Result< std::string > sshpp::Shell::try_read | ( | std::chrono::milliseconds | timeout, |
| Stream | stream = Stream::stdout_ |
||
| ) |