UFO: Alien Invasion
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
sv_send.cpp File Reference

Event message handling? More...

#include "server.h"

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. More...
 
void SV_BroadcastPrintf (int level, const char *fmt,...)
 Sends text to all active clients. More...
 
void SV_Multicast (int mask, const dbuffer &msg)
 Sends the contents of msg to a subset of the clients, then frees msg. More...
 

Detailed Description

Event message handling?

Definition in file sv_send.cpp.

Function Documentation

void SV_BroadcastPrintf ( int  level,
const char *  fmt,
  ... 
)
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_s::stream, and svc_stufftext.

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 MAX_SVC_PRINT, client_s::messagelevel, NET_VPrintf(), NET_WriteByte(), NET_WriteMsg(), client_s::stream, and svc_print.

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(), client_s::state, client_s::stream, and SV_GetNextClient().

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