Home
Symple module

Client::ClientData

ClientData

#include <src/symple/src/client/detail.h>
struct ClientData

Defined in src/symple/src/client/detail.h:13

List of all members

NameKindOwner
optionsvariableDeclared here
loopvariableDeclared here
wsvariableDeclared here
rostervariableDeclared here
ourIDvariableDeclared here
currentRoomsvariableDeclared here
desiredRoomsvariableDeclared here
pendingJoinsvariableDeclared here
pendingLeavesvariableDeclared here
announceStatusvariableDeclared here
reconnectTimervariableDeclared here
reconnectCountvariableDeclared here
wasOnlinevariableDeclared here
closingvariableDeclared here
remoteShutdownvariableDeclared here
ClientDatafunctionDeclared here

Public Attributes

ReturnNameDescription
Optionsoptions
uv::Loop *loop
http::ClientConnection::Ptrws
Rosterroster
std::stringourID
std::unordered_set< std::string >currentRoomsAuthoritative rooms from welcome / acks.
std::unordered_set< std::string >desiredRoomsRooms the client wants persisted across reconnects.
std::unordered_set< std::string >pendingJoinsJoin requests sent but not yet acknowledged.
std::unordered_set< std::string >pendingLeavesLeave requests sent but not yet acknowledged.
intannounceStatus
TimerreconnectTimer
intreconnectCount
boolwasOnline
boolclosing
boolremoteShutdown

options

Options options

Defined in src/symple/src/client/detail.h:22


loop

uv::Loop * loop

Defined in src/symple/src/client/detail.h:23


ws

http::ClientConnection::Ptr ws

Defined in src/symple/src/client/detail.h:24


roster

Roster roster

Defined in src/symple/src/client/detail.h:25


ourID

std::string ourID

Defined in src/symple/src/client/detail.h:26


currentRooms

std::unordered_set< std::string > currentRooms

Defined in src/symple/src/client/detail.h:27

Authoritative rooms from welcome / acks.


desiredRooms

std::unordered_set< std::string > desiredRooms

Defined in src/symple/src/client/detail.h:28

Rooms the client wants persisted across reconnects.


pendingJoins

std::unordered_set< std::string > pendingJoins

Defined in src/symple/src/client/detail.h:29

Join requests sent but not yet acknowledged.


pendingLeaves

std::unordered_set< std::string > pendingLeaves

Defined in src/symple/src/client/detail.h:30

Leave requests sent but not yet acknowledged.


announceStatus

int announceStatus = 0

Defined in src/symple/src/client/detail.h:31


reconnectTimer

Timer reconnectTimer

Defined in src/symple/src/client/detail.h:32


reconnectCount

int reconnectCount = 0

Defined in src/symple/src/client/detail.h:33


wasOnline

bool wasOnline = false

Defined in src/symple/src/client/detail.h:34


closing

bool closing = false

Defined in src/symple/src/client/detail.h:35


remoteShutdown

bool remoteShutdown = false

Defined in src/symple/src/client/detail.h:36

Public Methods

ReturnNameDescription
ClientData inline explicit

ClientData

inline explicit

inline explicit ClientData(Options opts, uv::Loop * targetLoop)

Defined in src/symple/src/client/detail.h:15