TcpConnection Class Reference
|
Space-ng SDK
|
sol3::net::TcpConnection Class Reference
#include <sol3/net/tcp_connection.h>
Inheritance diagram for sol3::net::TcpConnection:
Public Types | |
| using | tcp = boost::asio::ip::tcp |
Public Member Functions | |
| TcpConnection (TcpConnectionConfig const &config, boost::asio::io_context &io, tcp::socket &&socket, std::unique_ptr< IFramer > &&framer, std::weak_ptr< IConnectionHandler > handler, TcpTelemetry &server_telemetry) | |
| ~TcpConnection () | |
| void | start () |
| void | sendFrame (std::shared_ptr< std::vector< uint8_t > const > frame) |
| void | close () |
| void | requestRead () |
| std::string | localEndpoint () const |
| std::string | remoteEndpoint () const |
| TcpConnectionId | id () const |
| bool | isOpen () const |
Member Typedef Documentation
◆ tcp
| using sol3::net::TcpConnection::tcp = boost::asio::ip::tcp |
Constructor & Destructor Documentation
◆ TcpConnection()
| sol3::net::TcpConnection::TcpConnection | ( | TcpConnectionConfig const & | config, |
| boost::asio::io_context & | io, | ||
| tcp::socket && | socket, | ||
| std::unique_ptr< IFramer > && | framer, | ||
| std::weak_ptr< IConnectionHandler > | handler, | ||
| TcpTelemetry & | server_telemetry | ||
| ) |
◆ ~TcpConnection()
|
inline |
Member Function Documentation
◆ close()
| void sol3::net::TcpConnection::close | ( | ) |
◆ id()
|
inline |
◆ isOpen()
|
inline |
◆ localEndpoint()
| std::string sol3::net::TcpConnection::localEndpoint | ( | ) | const |
◆ remoteEndpoint()
| std::string sol3::net::TcpConnection::remoteEndpoint | ( | ) | const |
◆ requestRead()
| void sol3::net::TcpConnection::requestRead | ( | ) |
◆ sendFrame()
| void sol3::net::TcpConnection::sendFrame | ( | std::shared_ptr< std::vector< uint8_t > const > | frame | ) |
◆ start()
| void sol3::net::TcpConnection::start | ( | ) |
The documentation for this class was generated from the following file:
- /workspaces/astro/sol3-sdk/cpp/sol3/net/tcp_connection.h
Generated by