#include <sol3/net/tcp_server.h>
|
| static std::shared_ptr< ITcpServer > | make (boost::asio::io_context &io, msg::TcpServerConfigT const &config, std::unique_ptr< IFramer > &&framer) |
| |
◆ ~ITcpServer()
| virtual sol3::net::ITcpServer::~ITcpServer |
( |
| ) |
|
|
virtualdefault |
◆ broadcast()
| virtual void sol3::net::ITcpServer::broadcast |
( |
uint8_t const * |
data, |
|
|
size_t |
n |
|
) |
| |
|
pure virtual |
Broadcast to all connected clients.
◆ config()
| virtual msg::TcpServerConfigT const& sol3::net::ITcpServer::config |
( |
| ) |
const |
|
pure virtual |
◆ make()
| static std::shared_ptr<ITcpServer> sol3::net::ITcpServer::make |
( |
boost::asio::io_context & |
io, |
|
|
msg::TcpServerConfigT const & |
config, |
|
|
std::unique_ptr< IFramer > && |
framer |
|
) |
| |
|
static |
◆ requestRead()
| virtual void sol3::net::ITcpServer::requestRead |
( |
TcpConnectionId |
connection_id | ) |
|
|
pure virtual |
Begin reading the next frame Precondition: The server is configured with automatic_read=false
◆ sendTo()
| virtual void sol3::net::ITcpServer::sendTo |
( |
TcpConnectionId |
connection_id, |
|
|
uint8_t const * |
data, |
|
|
size_t |
n |
|
) |
| |
|
pure virtual |
◆ start()
| virtual void sol3::net::ITcpServer::start |
( |
std::weak_ptr< IConnectionHandler > |
weak_handler | ) |
|
|
pure virtual |
◆ stop()
| virtual void sol3::net::ITcpServer::stop |
( |
| ) |
|
|
pure virtual |
◆ telemetry()
The documentation for this class was generated from the following file: