68 va_start(argptr, fmt);
86 va_start(argptr, fmt);
95 const int length =
sizeof(copy) - 1;
97 va_start(argptr, fmt);
102 for (i = 0; i < length && copy[
i]; i++)
103 copy[i] = copy[i] & 127;
135 if (!(mask & (1 << j)))
void SV_BroadcastPrintf(int level, const char *fmt,...)
Sends text to all active clients.
int Q_vsnprintf(char *str, size_t size, const char *format, va_list ap)
Safe (null terminating) vsnprintf implementation.
void NET_VPrintf(dbuffer *buf, const char *format, va_list ap, char *str, size_t length)
client_t * SV_GetNextClient(client_t *lastClient)
Iterates through clients.
void Com_Printf(const char *const fmt,...)
void SV_ClientPrintf(client_t *cl, int level, const char *fmt,...)
Sends text across to be displayed if the level passes.
QGL_EXTERN GLuint GLsizei GLsizei * length
void SV_ClientCommand(client_t *client, const char *fmt,...)
Main server include file.
void SV_Multicast(int mask, const dbuffer &msg)
Sends the contents of msg to a subset of the clients, then frees msg.
#define MAX_SVC_STUFFTEXT
struct net_stream * stream
void NET_WriteByte(dbuffer *buf, byte c)
void NET_WriteConstMsg(struct net_stream *s, const dbuffer &buf)
Enqueue the buffer in the net stream for MULTIPLE clients.
void NET_WriteMsg(struct net_stream *s, dbuffer &buf)
Enqueue the buffer in the net stream for ONE client.