26#ifndef QB_IO_TRANSPORT_SACCEPT_H_
27#define QB_IO_TRANSPORT_SACCEPT_H_
30namespace qb::io::transport {
50 constexpr bool is_secure() const noexcept {
return true; }
76 if (_io.accept(_accepted_io) == io::SocketStatus::Done)
77 return static_cast<std::size_t
>(_accepted_io.native_handle());
78 return static_cast<std::size_t
>(-1);
Class implementing a secure SSL/TLS TCP listener for accepting encrypted connections.
Definition listener.h:43
Class implementing secure SSL/TLS TCP socket functionality.
Definition socket.h:320
Secure connection acceptance transport for SSL/TLS TCP connections.
Definition saccept.h:44
io::tcp::ssl::socket socket_type
Type of the accepted socket.
Definition saccept.h:55
io::tcp::ssl::listener transport_io_type
Type of the underlying transport I/O.
Definition saccept.h:52
constexpr bool is_secure() const noexcept
Indicates that this transport implementation is secure.
Definition saccept.h:50
void eof() const noexcept
End-of-file handling (no-op)
Definition saccept.h:100
void close() noexcept
Close the listener.
Definition saccept.h:109
std::size_t read() noexcept
Accept a new secure connection.
Definition saccept.h:75
void flush(std::size_t) noexcept
Reset the accepted socket.
Definition saccept.h:89
io::tcp::ssl::socket & getAccepted()
Get the accepted secure socket.
Definition saccept.h:121
io::tcp::ssl::listener & transport() noexcept
Get the underlying SSL TCP listener.
Definition saccept.h:62
Implementation of a secure SSL/TLS listener for the QB IO library.