smpl

proto::Welcome

The server's welcome on connect: its status and message, the client's own peer record and the rooms it is in.

Welcome

#include <src/symple/src/protocol.h>

struct Welcome

Defined in src/symple/src/protocol.h:19

Public Attributes

ReturnNameDescription
intstatus
std::stringmessage
Peerpeer
std::unordered_set< std::string >rooms

status

int status = 200

Defined in src/symple/src/protocol.h:21


message

std::string message

Defined in src/symple/src/protocol.h:22


peer

Peer peer

Type: Peer

Defined in src/symple/src/protocol.h:23


rooms

std::unordered_set< std::string > rooms

Defined in src/symple/src/protocol.h:24