$darkmode
cloe::utility::TcpTransceiverFullConfiguration Struct Reference

#include <tcp_transceiver_config.hpp>

Inheritance diagram for cloe::utility::TcpTransceiverFullConfiguration:
Collaboration diagram for cloe::utility::TcpTransceiverFullConfiguration:

Public Member Functions

 TcpTransceiverFullConfiguration (std::string host, uint16_t port)
 
 CONFABLE_SCHEMA (TcpTransceiverFullConfiguration)
 
void to_json (Json &j) const override
 
- Public Member Functions inherited from cloe::utility::TcpTransceiverConfiguration
 TcpTransceiverConfiguration (int32_t attempts, std::chrono::duration< float > delay)
 
 CONFABLE_SCHEMA (TcpTransceiverConfiguration)
 
void to_json (Json &j) const override
 
- Public Member Functions inherited from fable::Confable
 Confable (const Confable &) noexcept
 
 Confable (Confable &&) noexcept=default
 
Confableoperator= (const Confable &other) noexcept
 
Confableoperator= (Confable &&other) noexcept
 
virtual void reset_schema ()
 
Schemaschema ()
 
const Schemaschema () const
 
virtual void validate_or_throw (const Conf &c) const
 
virtual bool validate (const Conf &c, std::optional< SchemaError > &err) const
 
virtual void from_conf (const Conf &c)
 
virtual void to_json (Json &j) const
 
Json to_json () const
 

Public Attributes

std::string host {"localhost"}
 
uint16_t port {0}
 
- Public Attributes inherited from cloe::utility::TcpTransceiverConfiguration
int32_t retry_attempts {60}
 
std::chrono::duration< float > retry_delay {1.0}
 

Additional Inherited Members

- Protected Member Functions inherited from fable::Confable
virtual Schema schema_impl ()
 

Detailed Description

This configuration struct is meant to be re-used in various other configuration blocks for connection configuration.

Usually, the host and port values will be set to some default.

Member Data Documentation

◆ host

std::string cloe::utility::TcpTransceiverFullConfiguration::host {"localhost"}

Hostname or IP address for the TCP connection.

◆ port

uint16_t cloe::utility::TcpTransceiverFullConfiguration::port {0}

Port for TCP connection.


The documentation for this struct was generated from the following file: