|
| | Impl (const TcpClientConfig &cfg, net::io_context *ioc_ptr) |
| |
| void | init () |
| |
| void | do_resolve_connect (std::shared_ptr< TcpClient > self, uint64_t seq) |
| |
| void | schedule_retry (std::shared_ptr< TcpClient > self, uint64_t seq) |
| |
| void | start_read (std::shared_ptr< TcpClient > self, uint64_t seq) |
| |
| void | do_write (std::shared_ptr< TcpClient > self, uint64_t seq) |
| |
| void | handle_close (std::shared_ptr< TcpClient > self, uint64_t seq, const boost::system::error_code &ec={}) |
| |
| void | transition_to (LinkState next, const boost::system::error_code &ec={}) |
| |
| void | perform_stop_cleanup () |
| |
| void | reset_start_state () |
| |
| void | join_ioc_thread (bool allow_detach) |
| |
| void | close_socket () |
| |
| void | recalculate_backpressure_bounds () |
| |
| void | report_backpressure (size_t queued_bytes) |
| |
| void | notify_state () |
| |
| void | reset_io_objects () |
| |
| void | record_error (diagnostics::ErrorLevel lvl, diagnostics::ErrorCategory cat, std::string_view operation, const boost::system::error_code &ec, std::string_view msg, bool retryable, uint32_t retry_count) |
| |
Definition at line 65 of file tcp_client.cc.
◆ Impl()
◆ close_socket()
| void unilink::transport::TcpClient::Impl::close_socket |
( |
| ) |
|
◆ do_resolve_connect()
| void unilink::transport::TcpClient::Impl::do_resolve_connect |
( |
std::shared_ptr< TcpClient > |
self, |
|
|
uint64_t |
seq |
|
) |
| |
◆ do_write()
| void unilink::transport::TcpClient::Impl::do_write |
( |
std::shared_ptr< TcpClient > |
self, |
|
|
uint64_t |
seq |
|
) |
| |
◆ handle_close()
| void unilink::transport::TcpClient::Impl::handle_close |
( |
std::shared_ptr< TcpClient > |
self, |
|
|
uint64_t |
seq, |
|
|
const boost::system::error_code & |
ec = {} |
|
) |
| |
◆ init()
| void unilink::transport::TcpClient::Impl::init |
( |
| ) |
|
|
inline |
◆ join_ioc_thread()
| void unilink::transport::TcpClient::Impl::join_ioc_thread |
( |
bool |
allow_detach | ) |
|
◆ notify_state()
| void unilink::transport::TcpClient::Impl::notify_state |
( |
| ) |
|
◆ perform_stop_cleanup()
| void unilink::transport::TcpClient::Impl::perform_stop_cleanup |
( |
| ) |
|
◆ recalculate_backpressure_bounds()
| void unilink::transport::TcpClient::Impl::recalculate_backpressure_bounds |
( |
| ) |
|
◆ record_error()
◆ report_backpressure()
| void unilink::transport::TcpClient::Impl::report_backpressure |
( |
size_t |
queued_bytes | ) |
|
◆ reset_io_objects()
| void unilink::transport::TcpClient::Impl::reset_io_objects |
( |
| ) |
|
◆ reset_start_state()
| void unilink::transport::TcpClient::Impl::reset_start_state |
( |
| ) |
|
◆ schedule_retry()
| void unilink::transport::TcpClient::Impl::schedule_retry |
( |
std::shared_ptr< TcpClient > |
self, |
|
|
uint64_t |
seq |
|
) |
| |
◆ start_read()
| void unilink::transport::TcpClient::Impl::start_read |
( |
std::shared_ptr< TcpClient > |
self, |
|
|
uint64_t |
seq |
|
) |
| |
◆ transition_to()
| void unilink::transport::TcpClient::Impl::transition_to |
( |
LinkState |
next, |
|
|
const boost::system::error_code & |
ec = {} |
|
) |
| |
◆ backpressure_active_
| bool unilink::transport::TcpClient::Impl::backpressure_active_ = false |
◆ bp_high_
| size_t unilink::transport::TcpClient::Impl::bp_high_ |
◆ bp_limit_
| size_t unilink::transport::TcpClient::Impl::bp_limit_ |
◆ bp_low_
| size_t unilink::transport::TcpClient::Impl::bp_low_ |
◆ callback_mtx_
| std::mutex unilink::transport::TcpClient::Impl::callback_mtx_ |
|
mutable |
◆ cfg_
◆ connect_timer_
| net::steady_timer unilink::transport::TcpClient::Impl::connect_timer_ |
◆ connected_
| std::atomic<bool> unilink::transport::TcpClient::Impl::connected_ {false} |
◆ current_seq_
| std::atomic<uint64_t> unilink::transport::TcpClient::Impl::current_seq_ {0} |
◆ current_write_buffer_
| std::optional<BufferVariant> unilink::transport::TcpClient::Impl::current_write_buffer_ |
◆ first_retry_interval_ms_
| unsigned unilink::transport::TcpClient::Impl::first_retry_interval_ms_ = 100 |
◆ ioc_
| net::io_context* unilink::transport::TcpClient::Impl::ioc_ = nullptr |
◆ ioc_thread_
| std::thread unilink::transport::TcpClient::Impl::ioc_thread_ |
◆ last_err_mtx_
| std::mutex unilink::transport::TcpClient::Impl::last_err_mtx_ |
|
mutable |
◆ last_error_info_
◆ lifecycle_seq_
| std::atomic<uint64_t> unilink::transport::TcpClient::Impl::lifecycle_seq_ {0} |
◆ on_bp_
◆ on_bytes_
| OnBytes unilink::transport::TcpClient::Impl::on_bytes_ |
◆ on_state_
| OnState unilink::transport::TcpClient::Impl::on_state_ |
◆ owned_ioc_
| std::unique_ptr<net::io_context> unilink::transport::TcpClient::Impl::owned_ioc_ |
◆ owns_ioc_
| bool unilink::transport::TcpClient::Impl::owns_ioc_ = true |
◆ queue_bytes_
| size_t unilink::transport::TcpClient::Impl::queue_bytes_ = 0 |
◆ reconnect_attempt_count_
| uint32_t unilink::transport::TcpClient::Impl::reconnect_attempt_count_ {0} |
◆ reconnect_pending_
| std::atomic<bool> unilink::transport::TcpClient::Impl::reconnect_pending_ {false} |
◆ reconnect_policy_
| std::optional<ReconnectPolicy> unilink::transport::TcpClient::Impl::reconnect_policy_ |
◆ resolver_
| tcp::resolver unilink::transport::TcpClient::Impl::resolver_ |
◆ retry_attempts_
| int unilink::transport::TcpClient::Impl::retry_attempts_ = 0 |
◆ retry_timer_
| net::steady_timer unilink::transport::TcpClient::Impl::retry_timer_ |
◆ rx_
| std::array<uint8_t, common::constants::DEFAULT_READ_BUFFER_SIZE> unilink::transport::TcpClient::Impl::rx_ {} |
◆ socket_
| tcp::socket unilink::transport::TcpClient::Impl::socket_ |
◆ state_
| ThreadSafeLinkState unilink::transport::TcpClient::Impl::state_ {LinkState::Idle} |
◆ stop_requested_
| std::atomic<bool> unilink::transport::TcpClient::Impl::stop_requested_ {false} |
◆ stop_seq_
| std::atomic<uint64_t> unilink::transport::TcpClient::Impl::stop_seq_ {0} |
◆ stopping_
| std::atomic<bool> unilink::transport::TcpClient::Impl::stopping_ {false} |
◆ strand_
| net::strand<net::io_context::executor_type> unilink::transport::TcpClient::Impl::strand_ |
◆ terminal_state_notified_
| std::atomic<bool> unilink::transport::TcpClient::Impl::terminal_state_notified_ {false} |
◆ tx_
| std::deque<BufferVariant> unilink::transport::TcpClient::Impl::tx_ |
◆ work_guard_
| std::unique_ptr<net::executor_work_guard<net::io_context::executor_type> > unilink::transport::TcpClient::Impl::work_guard_ |
◆ writing_
| bool unilink::transport::TcpClient::Impl::writing_ = false |
The documentation for this struct was generated from the following file: