Symple module

Server::RoutingPolicy

RoutingPolicy

#include </home/runner/work/icey/icey/src/symple/src/server/detail.h>

Public Static Methods

ReturnNameDescription
boolsharesAnyRoom static
boolcanDirectMessage static
boolcanDirectMessage static
boolcanBroadcastToRoom 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)