4#include <sshpp/config.hpp>
7#include <sshpp/export.hpp>
23 std::string bind_address =
"0.0.0.0";
24 std::uint16_t port = 22;
46 explicit operator
bool() const noexcept {
return native_ !=
nullptr; }
50 std::uint16_t
local_port() const noexcept {
return configured_port_; }
51 int fd() const noexcept;
60 std::uint16_t configured_port_ = 0;
The listening server socket. See docs/design/08 §8.3.
Definition bind.hpp:37
native_bind native_handle() const noexcept
Definition bind.hpp:47
std::uint16_t local_port() const noexcept
Definition bind.hpp:50
One accepted server-side connection. See docs/design/08 §8.4.
Definition server_session.hpp:32
Definition server_bind.ipp:15
::ssh_bind_struct * native_bind
Definition native_fwd.hpp:28
LogLevel
Definition library.hpp:15
int fd
Definition server_sftp_subsystem.ipp:36
std::vector< Key > host_keys
Definition bind.hpp:28
std::optional< std::string > banner
Definition bind.hpp:30
std::vector< std::filesystem::path > host_key_files
At least one host key (via either field) is required.
Definition bind.hpp:27