Symple module
Server::RoutingPolicy
RoutingPolicy
#include <src/symple/src/server/detail.h>Public Static Methods
| Return | Name | Description |
|---|---|---|
bool | sharesAnyRoom static | |
bool | canDirectMessage static | |
bool | canDirectMessage static | |
bool | canBroadcastToRoom static |
sharesAnyRoom
static
static bool sharesAnyRoom(const std::unordered_set< std::string > & a, const std::unordered_set< std::string > & b)canDirectMessage
static
static bool canDirectMessage(const ServerPeer & sender, const ServerPeer & recipient)canDirectMessage
static
static bool canDirectMessage(const ServerPeer & sender, const VirtualPeer & recipient)canBroadcastToRoom
static
static bool canBroadcastToRoom(const ServerPeer & sender, const std::string & room)