#include <SpecialSocketBase.hpp>
|
| template<SpecialSocketDerived SocketType, typename... Args> |
| static auto | create (int port_number, io_context_type &io_context, Args... args) -> std::expected< std::shared_ptr< SocketType >, boost::system::error_code > |
|
| template<SpecialSocketDerived SocketType> |
| static auto | listen_all_connections (std::shared_ptr< SocketType > socket) -> asio::awaitable< void > |
Definition at line 47 of file SpecialSocketBase.hpp.
◆ SpecialSocket()
| srs::connection::SpecialSocket::SpecialSocket |
( |
int | port_number, |
|
|
io_context_type & | io_context ) |
|
explicitprotected |
◆ bind_socket()
| void srs::connection::SpecialSocket::bind_socket |
( |
| ) |
|
|
private |
◆ cancel_coroutine()
| auto srs::connection::SpecialSocket::cancel_coroutine |
( |
| ) |
->asio::awaitable< void > |
|
private |
◆ cancel_listen_after()
| auto srs::connection::SpecialSocket::cancel_listen_after |
( |
this auto && | self, |
|
|
io_context_type & | io_context, |
|
|
std::chrono::seconds | waiting_time = std::chrono::seconds(2) )->std::future< void > |
◆ close_socket()
| void srs::connection::SpecialSocket::close_socket |
( |
| ) |
|
|
private |
◆ create()
template<SpecialSocketDerived SocketType, typename... Args>
| auto srs::connection::SpecialSocket::create |
( |
int | port_number, |
|
|
io_context_type & | io_context, |
|
|
Args... | args )->std::expected< std::shared_ptr< SocketType >, boost::system::error_code > |
|
static |
◆ get_cancel_timer()
| auto srs::connection::SpecialSocket::get_cancel_timer |
( |
| ) |
->auto & |
|
inlineprotected |
◆ get_future()
| auto srs::connection::SpecialSocket::get_future |
( |
| ) |
->auto & |
|
inline |
◆ get_port()
| auto srs::connection::SpecialSocket::get_port |
( |
| ) |
const |
|
inlinenodiscard |
◆ get_socket()
| auto srs::connection::SpecialSocket::get_socket |
( |
| ) |
const->auto & |
|
inlinenodiscard |
◆ get_socket_error_code()
| auto srs::connection::SpecialSocket::get_socket_error_code |
( |
| ) |
const->auto |
|
inlinenodiscard |
◆ is_valid()
| auto srs::connection::SpecialSocket::is_valid |
( |
| ) |
const->bool |
|
inline |
◆ listen()
| void srs::connection::SpecialSocket::listen |
( |
this auto & | self, |
|
|
io_context_type & | io_context ) |
◆ listen_all_connections()
template<SpecialSocketDerived SocketType>
| auto srs::connection::SpecialSocket::listen_all_connections |
( |
std::shared_ptr< SocketType > | socket | ) |
->asio::awaitable< void > |
|
staticprivate |
◆ register_send_action()
| void srs::connection::SpecialSocket::register_send_action |
( |
this auto && | self, |
|
|
asio::awaitable< void > | action, |
|
|
const std::shared_ptr< typename std::remove_cvref_t< decltype(self)>::ConnectionType > & | connection ) |
◆ wait_for_listen_finish()
| auto srs::connection::SpecialSocket::wait_for_listen_finish |
( |
std::chrono::seconds | time | ) |
->std::optional< std::future_status > |
◆ cancel_timer_
| asio::system_timer srs::connection::SpecialSocket::cancel_timer_ |
|
private |
◆ is_valid_
| bool srs::connection::SpecialSocket::is_valid_ = false |
|
private |
◆ listen_future_
| std::shared_future<std::variant<std::monostate, std::monostate> > srs::connection::SpecialSocket::listen_future_ |
|
private |
◆ port_number_
| int srs::connection::SpecialSocket::port_number_ = 0 |
|
private |
◆ socket_
| std::unique_ptr<udp::socket> srs::connection::SpecialSocket::socket_ |
|
private |
◆ socket_ec_
| boost::system::error_code srs::connection::SpecialSocket::socket_ec_ |
|
private |
The documentation for this class was generated from the following files: