Client::ClientData
ClientData
#include <src/symple/src/client/detail.h>
struct ClientDataDefined in src/symple/src/client/detail.h:15
Public Attributes
| Return | Name | Description |
|---|---|---|
Options | options | |
uv::Loop * | loop | |
http::ClientConnection::Ptr | ws | |
Roster | roster | |
std::string | ourID | |
std::unordered_set< std::string > | currentRooms | Authoritative rooms from welcome / acks. |
std::unordered_set< std::string > | desiredRooms | Rooms the client wants persisted across reconnects. |
std::unordered_set< std::string > | pendingJoins | Join requests sent but not yet acknowledged. |
std::unordered_set< std::string > | pendingLeaves | Leave requests sent but not yet acknowledged. |
int | announceStatus | |
Timer | reconnectTimer | |
int | reconnectCount | |
bool | wasOnline | |
bool | closing | |
bool | remoteShutdown |
options
Options optionsType: Options
Defined in src/symple/src/client/detail.h:24
loop
uv::Loop * loopType: uv::Loop *
Defined in src/symple/src/client/detail.h:25
ws
http::ClientConnection::Ptr wsType: http::ClientConnection::Ptr
Defined in src/symple/src/client/detail.h:26
roster
Roster rosterType: Roster
Defined in src/symple/src/client/detail.h:27
ourID
std::string ourIDDefined in src/symple/src/client/detail.h:28
currentRooms
std::unordered_set< std::string > currentRoomsDefined in src/symple/src/client/detail.h:29
Authoritative rooms from welcome / acks.
desiredRooms
std::unordered_set< std::string > desiredRoomsDefined in src/symple/src/client/detail.h:30
Rooms the client wants persisted across reconnects.
pendingJoins
std::unordered_set< std::string > pendingJoinsDefined in src/symple/src/client/detail.h:31
Join requests sent but not yet acknowledged.
pendingLeaves
std::unordered_set< std::string > pendingLeavesDefined in src/symple/src/client/detail.h:32
Leave requests sent but not yet acknowledged.
announceStatus
int announceStatus = 0Defined in src/symple/src/client/detail.h:33
reconnectTimer
Timer reconnectTimerType: Timer
Defined in src/symple/src/client/detail.h:34
reconnectCount
int reconnectCount = 0Defined in src/symple/src/client/detail.h:35
wasOnline
bool wasOnline = falseDefined in src/symple/src/client/detail.h:36
closing
bool closing = falseDefined in src/symple/src/client/detail.h:37
remoteShutdown
bool remoteShutdown = falseDefined in src/symple/src/client/detail.h:38
Public Methods
| Return | Name | Description |
|---|---|---|
ClientData inline explicit |
ClientData
inline explicit
inline explicit ClientData(Options opts, uv::Loop * targetLoop)