sv_user.c File Reference

Server code for moving users. More...

#include "server.h"
Include dependency graph for sv_user.c:

Go to the source code of this file.

Data Structures

struct  ucmd_t

Functions

void SV_SetClientState (client_t *client, int state)
 Set the client state.
static void SV_New_f (client_t *cl)
 Sends the first message from the server to a connected client. This will be sent on the initial connection and upon each server load. Client reads via CL_ParseServerData in cl_parse.c.
static void SV_Begin_f (client_t *cl)
static void SV_Spawn_f (client_t *cl)
static void SV_Disconnect_f (client_t *cl)
 The client is going to disconnect, so remove the connection immediately.
static void SV_ShowServerinfo_f (client_t *cl)
 Dumps the serverinfo info string.
static void SV_ExecuteUserCommand (client_t *cl, const char *s)
void SV_ExecuteClientMessage (client_t *cl, int cmd, struct dbuffer *msg)
 The current net_message is parsed for the given client.

Variables

static const ucmd_t ucmds []

Detailed Description

Server code for moving users.

Definition in file sv_user.c.


Function Documentation

static void SV_Begin_f ( client_t cl  )  [static]
static void SV_Disconnect_f ( client_t cl  )  [static]

The client is going to disconnect, so remove the connection immediately.

Definition at line 166 of file sv_user.c.

References SV_DropClient().

void SV_ExecuteClientMessage ( client_t cl,
int  cmd,
struct dbuffer msg 
)
static void SV_ExecuteUserCommand ( client_t cl,
const char *  s 
) [static]
static void SV_New_f ( client_t cl  )  [static]
void SV_SetClientState ( client_t client,
int  state 
)

Set the client state.

See also:
client_state_t

Definition at line 35 of file sv_user.c.

References Com_DPrintf(), DEBUG_SERVER, client_s::name, and client_s::state.

Referenced by SV_Begin_f(), SV_DropClient(), SV_Map(), SV_New_f(), SV_Spawn_f(), and SVC_DirectConnect().

static void SV_ShowServerinfo_f ( client_t cl  )  [static]

Dumps the serverinfo info string.

Definition at line 175 of file sv_user.c.

References Cvar_Serverinfo(), and Info_Print().

static void SV_Spawn_f ( client_t cl  )  [static]

Variable Documentation

const ucmd_t ucmds[] [static]
Initial value:
 {
    
    {"new", SV_New_f},
    {"begin", SV_Begin_f},
    {"spawn", SV_Spawn_f},

    {"disconnect", SV_Disconnect_f},

    
    {"info", SV_ShowServerinfo_f},

    {NULL, NULL}
}

Definition at line 186 of file sv_user.c.


Generated by  doxygen 1.6.2