Symple module

Client::Options

Connection and authentication options for the Symple client.

Options

#include <icy/symple/client.h>

Connection and authentication options for the Symple client.

Public Attributes

ReturnNameDescription
std::stringhost
uint16_tport
boolsecureUse wss:// instead of ws://.
boolreconnectionAuto-reconnect on disconnect.
intreconnectAttempts0 = unlimited
intreconnectDelayMilliseconds between retries.
std::stringuserUser identifier (required)
std::stringnameDisplay name.
std::stringtypePeer type.
std::stringtokenAuth token (optional)

host

std::string host = "127.0.0.1"

port

uint16_t port = 4500

secure

bool secure = false

Use wss:// instead of ws://.


reconnection

bool reconnection = true

Auto-reconnect on disconnect.


reconnectAttempts

int reconnectAttempts = 0

0 = unlimited


reconnectDelay

int reconnectDelay = 3000

Milliseconds between retries.


user

std::string user

User identifier (required)


name

std::string name

Display name.


type

std::string type

Peer type.


token

std::string token

Auth token (optional)

Public Methods

ReturnNameDescription
OptionsDefaulted constructor.

Options

Options() = default

Defaulted constructor.