4#include <sshpp/config.hpp>
10#include <sshpp/export.hpp>
24 host_based =
false, interactive =
false, gssapi_mic =
false;
25 int to_bits() const noexcept;
40 explicit operator
bool() const noexcept {
return core_ && core_->valid(); }
47 Result<void> try_disconnect(std::string_view reason = {});
52 const std::string&
user() const noexcept {
return user_; }
56 std::chrono::milliseconds(-1));
62 Result<void> try_set_handler(std::shared_ptr<SessionHandler>);
65 Result<void> try_poll(std::chrono::milliseconds timeout);
72 void notify_disconnect();
75 bool authenticated_ =
false;
77 bool used_message_style_ =
false;
78 std::shared_ptr<detail::HandlerBridge> bridge_;
79 std::unique_ptr<Event> private_event_;
Poll-loop integration seam around ssh_event. See docs/design/05 §5.5.
Definition event.hpp:16
Definition handler_bridge.ipp:23
The listening server socket. See docs/design/08 §8.3.
Definition bind.hpp:37
Definition message.hpp:33
Definition handlers.hpp:42
One accepted server-side connection. See docs/design/08 §8.4.
Definition server_session.hpp:32
bool authenticated() const noexcept
Definition server_session.hpp:51
native_session native_handle() const noexcept
Definition server_session.hpp:41
Session(Session &&) noexcept
const std::string & user() const noexcept
Definition server_session.hpp:52
std::shared_ptr< SessionCore > SessionCorePtr
Definition session_core.hpp:43
Definition server_bind.ipp:15
::ssh_session_struct * native_session
Definition native_fwd.hpp:25
Definition server_session.hpp:22