|
libsshpp v0.1.7
Modern C++17 wrapper for libssh
|
The listening server socket. See docs/design/08 §8.3. More...
#include <bind.hpp>
Public Member Functions | |
| Bind ()=default | |
| Bind (const BindOptions &) | |
| ~Bind () | |
| Bind (Bind &&) noexcept | |
| Bind & | operator= (Bind &&) noexcept |
| Bind (const Bind &)=delete | |
| operator bool () const noexcept | |
| native_bind | native_handle () const noexcept |
| Result< void > | try_listen () |
| std::uint16_t | local_port () const noexcept |
| int | fd () const noexcept |
| Result< Session > | try_accept () |
| Blocking accept. The returned session has NOT completed key exchange yet. | |
| Result< std::optional< Session > > | try_accept (std::chrono::milliseconds timeout) |
Blocks up to timeout; nullopt on timeout. | |
The listening server socket. See docs/design/08 §8.3.
|
default |
|
explicit |
| SSHPP_INLINE sshpp::server::Bind::~Bind | ( | ) |
|
noexcept |
|
delete |
|
inlineexplicitnoexcept |
|
inlinenoexcept |
| SSHPP_INLINE Result< void > sshpp::server::Bind::try_listen | ( | ) |
|
inlinenoexcept |
|
noexcept |
Blocking accept. The returned session has NOT completed key exchange yet.
| SSHPP_INLINE Result< std::optional< Session > > sshpp::server::Bind::try_accept | ( | std::chrono::milliseconds | timeout | ) |
Blocks up to timeout; nullopt on timeout.