UFO: Alien Invasion
Loading...
Searching...
No Matches
sv_send.cpp File Reference

Event message handling? More...

#include "server.h"
Include dependency graph for sv_send.cpp:

Go to the source code of this file.

Functions

void SV_ClientCommand (client_t *client, const char *fmt,...)
void SV_ClientPrintf (client_t *cl, int level, const char *fmt,...)
 Sends text across to be displayed if the level passes.
void SV_BroadcastPrintf (int level, const char *fmt,...)
 Sends text to all active clients.
void SV_Multicast (int mask, const dbuffer &msg)
 Sends the contents of msg to a subset of the clients, then frees msg.

Detailed Description

Event message handling?

Definition in file sv_send.cpp.

Function Documentation

◆ SV_BroadcastPrintf()

void SV_BroadcastPrintf ( int level,
const char * fmt,
... )

◆ SV_ClientCommand()

void SV_ClientCommand ( client_t * client,
const char * fmt,
... )
See also
SV_BroadcastCommand

Definition at line 40 of file sv_send.cpp.

References MAX_SVC_STUFFTEXT, NET_VPrintf(), NET_WriteByte(), NET_WriteMsg(), client_t::stream, and svc_stufftext.

◆ SV_ClientPrintf()

void SV_ClientPrintf ( client_t * cl,
int level,
const char * fmt,
... )

Sends text across to be displayed if the level passes.

Definition at line 58 of file sv_send.cpp.

References cl, level, MAX_SVC_PRINT, NET_VPrintf(), NET_WriteByte(), NET_WriteMsg(), and svc_print.

◆ SV_Multicast()

void SV_Multicast ( int mask,
const dbuffer & msg )

Sends the contents of msg to a subset of the clients, then frees msg.

Parameters
[in]maskBitmask of the players to send the multicast to
[in,out]msgThe message to send to the clients

Definition at line 126 of file sv_send.cpp.

References cl, cs_connected, NET_WriteConstMsg(), and SV_GetNextClient().

Referenced by SV_Configstring(), SV_EndEvents(), SV_FindIndex(), and SV_SendQueuedEvents().