libssh 0.5.2
|
The C++ bindings for libssh are completely embedded in a single .hpp file, and this for two reasons:
The C++ bindings for libssh are completely embedded in a single .hpp file, and this for two reasons:
We try to keep libssh C version as much as possible binary compatible between releases, while this would be hard for C++. If you compile your program with these headers, you will only link to the C version of libssh which will be kept ABI compatible. No need to recompile your C++ program each time a new binary-compatible version of libssh is out
Please visit the documentation of ssh::Session and ssh::Channel
If you wish not to use C++ exceptions, please define SSH_NO_CPP_EXCEPTIONS:
#define SSH_NO_CPP_EXCEPTIONS #include <libssh/libsshpp.hpp>
All functions will then return SSH_ERROR in case of error.