Home
Symple module

Client::Options

Connection and authentication options for the Symple client.

Options

#include <icy/symple/client.h>
struct Options

Defined in src/symple/include/icy/symple/client.h:93

Connection and authentication options for the Symple client.

List of all members

NameKindOwner
hostvariableDeclared here
portvariableDeclared here
securevariableDeclared here
reconnectionvariableDeclared here
reconnectAttemptsvariableDeclared here
reconnectDelayvariableDeclared here
uservariableDeclared here
namevariableDeclared here
typevariableDeclared here
tokenvariableDeclared here
OptionsfunctionDeclared here

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"

Defined in src/symple/include/icy/symple/client.h:95


port

uint16_t port = 4500

Defined in src/symple/include/icy/symple/client.h:96


secure

bool secure = false

Defined in src/symple/include/icy/symple/client.h:97

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


reconnection

bool reconnection = true

Defined in src/symple/include/icy/symple/client.h:98

Auto-reconnect on disconnect.


reconnectAttempts

int reconnectAttempts = 0

Defined in src/symple/include/icy/symple/client.h:99

0 = unlimited


reconnectDelay

int reconnectDelay = 3000

Defined in src/symple/include/icy/symple/client.h:100

Milliseconds between retries.


user

std::string user

Defined in src/symple/include/icy/symple/client.h:102

User identifier (required)


name

std::string name

Defined in src/symple/include/icy/symple/client.h:103

Display name.


type

std::string type

Defined in src/symple/include/icy/symple/client.h:104

Peer type.


token

std::string token

Defined in src/symple/include/icy/symple/client.h:105

Auth token (optional)

Public Methods

ReturnNameDescription
OptionsDefaulted constructor.

Options

Options() = default

Defined in src/symple/include/icy/symple/client.h:107

Defaulted constructor.