|
srs-control 0.2.2
|
#include <ConnectionBase.hpp>

Public Member Functions | |
| CommandBase (const std::string_view name) | |
| void | send_message_from (this auto &&self, const std::shared_ptr< FecCommandSocket > &socket) |
| Register the send action in the socket. | |
| auto | check_response (std::span< char > response_msg) const -> bool |
| void | set_remote_endpoint (asio::ip::udp::endpoint endpoint) |
| auto | get_name () const -> std::string_view |
| auto | get_remote_endpoint () -> const udp::endpoint & |
| auto | get_response_msg () const -> std::string_view |
| auto | get_remote_ip_string () const |
| auto | get_remote_port () const |
Protected Member Functions | |
| void | set_write_response_msg (const std::vector< CommunicateEntryType > &msg, uint16_t address) |
Private Member Functions | |
| void | communicate (this auto &&self, std::span< const CommunicateEntryType > data, uint16_t address, const std::shared_ptr< FecCommandSocket > &socket) |
Static Private Member Functions | |
| static void | encode_write_msg (process::SerializableMsgBuffer &buffer, uint32_t counter, std::span< const CommunicateEntryType > data, uint16_t address) |
| static auto | timer_countdown (auto *connection) -> asio::awaitable< void > |
| static auto | send_message (std::shared_ptr< FecCommandSocket > socket, std::shared_ptr< CommandBase > connection) -> asio::awaitable< void > |
Private Attributes | |
| uint32_t | counter_ = common::INIT_COUNT_VALUE |
| udp::endpoint | remote_endpoint_ |
| process::SerializableMsgBuffer | write_msg_buffer_ |
| process::SerializableMsgBuffer | write_msg_response_buffer_ |
| std::string_view | name_ |
Definition at line 26 of file ConnectionBase.hpp.
|
inlineexplicit |
Definition at line 29 of file ConnectionBase.hpp.
|
nodiscard |
Definition at line 59 of file ConnectionBase.cpp.
|
inlineprivate |
Definition at line 80 of file ConnectionBase.hpp.
|
staticprivate |
Definition at line 44 of file ConnectionBase.cpp.
|
inlinenodiscard |
Definition at line 51 of file ConnectionBase.hpp.
|
inline |
Definition at line 52 of file ConnectionBase.hpp.
|
inlinenodiscard |
Definition at line 54 of file ConnectionBase.hpp.
|
inlinenodiscard |
Definition at line 55 of file ConnectionBase.hpp.
|
inlinenodiscard |
Definition at line 53 of file ConnectionBase.hpp.
|
staticprivate |
Definition at line 24 of file ConnectionBase.cpp.
|
inline |
Register the send action in the socket.
| self | Deduce this self reference. |
| socket | The FecCommandSocket to register |
Definition at line 40 of file ConnectionBase.hpp.
|
inline |
Definition at line 48 of file ConnectionBase.hpp.
|
inlineprotected |
Definition at line 58 of file ConnectionBase.hpp.
|
staticprivate |
|
private |
Definition at line 64 of file ConnectionBase.hpp.
|
private |
Definition at line 68 of file ConnectionBase.hpp.
|
private |
Definition at line 65 of file ConnectionBase.hpp.
|
private |
Definition at line 66 of file ConnectionBase.hpp.
|
private |
Definition at line 67 of file ConnectionBase.hpp.