20 static constexpr uint16_t TCP_CONTROL_PORT = 20010;
24 static constexpr uint16_t WEBSOCKET_CONTROL_PORT = 20012;
36 std::string username = DEFAULT_USERNAME;
40 std::string password = DEFAULT_PASSWORD;
44 std::string endpoint = CORELINK_REMOTE_HOSTNAME;
48 uint16_t port_number = WEBSOCKET_CONTROL_PORT;
53 std::string client_certificate_path =
"./ca-crt.pem";
63#ifdef CORELINK_USE_WEBSOCKET
64 core::network::constants::protocols::websocket
66 core::network::constants::protocols::tcp
81#ifdef CORELINK_USE_WEBSOCKET
82 case core::network::constants::protocols::websocket():
83 set_port_number(WEBSOCKET_CONTROL_PORT);
86#ifdef CORELINK_USE_TCP
87 case core::network::constants::protocols::tcp():
88 set_port_number(TCP_CONTROL_PORT);
99 : username(rhs.username),
100 password(rhs.password),
101 endpoint(rhs.endpoint),
102 port_number(rhs.port_number),
103 client_certificate_path(rhs.client_certificate_path),
104 protocol(rhs.protocol)
112 : username(std::move(rhs.username)),
113 password(std::move(rhs.password)),
114 endpoint(std::move(rhs.endpoint)),
115 port_number(rhs.port_number),
116 client_certificate_path(std::move(rhs.client_certificate_path)),
117 protocol(rhs.protocol)
160 this->port_number = _;
171 this->client_certificate_path = _;
Definition reader_writer_lock_shim.hpp:7
const t *const const_ptr_to_const_val
Defines a constant pointer type to a constant value.
Definition typedefs.hpp:64
fref< t && > rvref
R-value reference typedef Example.
Definition typedefs.hpp:89
fref< t & > lvref
L-value reference typedef. equivalent to type &var Example.
Definition typedefs.hpp:105
clvref< t > in
Wraps a type and declares a value as an in parameter, which is a clvref.
Definition typedefs.hpp:139
lvref< t > out
Wraps a type and declares a value as an out parameter, which is a lvref.
Definition typedefs.hpp:155
fref< const t & > clvref
const l-value reference typedef.
Definition typedefs.hpp:123
Definition corelink_client_connection_info.hpp:12
clvref< core::network::constants::protocols::protocol > protocol
Communication protocol to use. By default set to Websockets.
Definition corelink_client_connection_info.hpp:57
static const_ptr_to_const_val< char > DEFAULT_PASSWORD
Corelink default password.
Definition corelink_client_connection_info.hpp:32
corelink_client_connection_info(lvref< corelink_client_connection_info > rhs)
Definition corelink_client_connection_info.hpp:98
corelink_client_connection_info(rvref< corelink_client_connection_info > rhs) noexcept
Definition corelink_client_connection_info.hpp:111
out< corelink_client_connection_info > set_password(in< std::string > _)
Definition corelink_client_connection_info.hpp:136
static const_ptr_to_const_val< char > DEFAULT_USERNAME
Corelink default username.
Definition corelink_client_connection_info.hpp:28
out< corelink_client_connection_info > set_endpoint(in< std::string > _)
Definition corelink_client_connection_info.hpp:147
out< corelink_client_connection_info > set_port_number(uint16_t _)
Definition corelink_client_connection_info.hpp:158
CORELINK_CPP_ATTR_MAYBE_UNUSED corelink_client_connection_info(in< core::network::constants::protocols::protocol > proto)
Definition corelink_client_connection_info.hpp:75
corelink_client_connection_info()
Definition corelink_client_connection_info.hpp:62
out< corelink_client_connection_info > set_certificate_path(in< std::string > _)
Definition corelink_client_connection_info.hpp:169
out< corelink_client_connection_info > set_username(in< std::string > _)
Definition corelink_client_connection_info.hpp:125
static const_ptr_to_const_val< char > CORELINK_REMOTE_HOSTNAME
Corelink default remote hostname.
Definition corelink_client_connection_info.hpp:16