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

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)
size_tmaxMessageSizeMaximum inbound message size.

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)


maxMessageSize

size_t maxMessageSize = 256 * 1024

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

Maximum inbound message size.

Public Methods

ReturnNameDescription
OptionsDefaulted constructor.

Options

Options() = default

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

Defaulted constructor.