Class ServerImpl

Inheritance Relationships

Base Type

  • public std::enable_shared_from_this< ServerImpl >

Class Documentation

class ServerImpl : public std::enable_shared_from_this<ServerImpl>

Public Functions

ServerImpl(const ServerImpl&) = delete
ServerImpl(ServerImpl&&) = delete
ServerImpl &operator=(const ServerImpl&) = delete
ServerImpl &operator=(ServerImpl&&) = delete
~ServerImpl()
bool is_connected() const
int get_connection_count() const
std::uint16_t get_port() const
void stop()

Public Static Functions

static std::shared_ptr<ServerImpl> create(const std::shared_ptr<asio::io_context> &io_context, std::uint8_t protocol_version, std::uint16_t port, const ServerServiceCallbackT &service_callback, bool parallel_service_calls_enabled, const ServerEventCallbackT &event_callback, const LoggerT &logger = default_logger("Service Server"))

Protected Functions

ServerImpl(const std::shared_ptr<asio::io_context> &io_context, const ServerServiceCallbackT &service_callback, bool parallel_service_calls_enabled, const ServerEventCallbackT &event_callback, const LoggerT &logger)