![]() |
C-chat
|
Regroup functions that aim to communicate with clients. More...
Go to the source code of this file.
Functions | |
void | broadcastRoom (Packet *packet, Room *room) |
Broadcast a packet to all clients of the given room. More... | |
void | syncBroadcastRoom (Packet *packet, Room *room) |
Broadcast a packet to all clients of the given room with room-lock acquirement. More... | |
void | handleTextMessageRelay (Client *client, struct PacketText *packet) |
Processes a received PacketText. More... | |
Regroup functions that aim to communicate with clients.
Broadcast a packet to all clients of the given room.
packet | The packet to broadcast |
room | The room |
void handleTextMessageRelay | ( | Client * | client, |
struct PacketText * | packet | ||
) |
Processes a received PacketText.
client | The client who sent the packet |
packet | The received packet |