UFO: Alien Invasion
|
Server code for moving users. More...
Go to the source code of this file.
Data Structures | |
struct | ucmd_t |
Functions | |
void | SV_SetClientState (client_t *client, client_state_t state) |
Set the client state. More... | |
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. More... | |
static void | SV_Begin_f (client_t *cl) |
static void | SV_StartMatch_f (client_t *cl) |
static void | SV_Disconnect_f (client_t *cl) |
The client is going to disconnect, so remove the connection immediately. More... | |
static void | SV_ShowServerinfo_f (client_t *cl) |
Dumps the serverinfo info string. More... | |
static void | SV_ExecuteUserCommand (client_t *cl, const char *s) |
void | SV_ExecuteClientMessage (client_t *cl, int cmd, dbuffer *msg) |
The current net_message is parsed for the given client. More... | |
server_state_t | SV_GetServerState (void) |
void | SV_SetServerState (server_state_t state) |
Variables | |
static const ucmd_t | ucmds [] |
Server code for moving users.
Definition in file sv_user.cpp.
Definition at line 123 of file sv_user.cpp.
References Cbuf_InsertFromDefer(), Com_DPrintf(), Com_Printf(), cs_began, cs_spawning, DEBUG_SERVER, serverInstanceStatic_s::ge, client_s::name, client_s::player, serverInstanceStatic_s::serverMutex, client_s::state, SV_DropClient(), SV_SetClientState(), and svs.
The client is going to disconnect, so remove the connection immediately.
Definition at line 176 of file sv_user.cpp.
References SV_DropClient().
The current net_message is parsed for the given client.
Definition at line 235 of file sv_user.cpp.
References clc_ack, clc_action, clc_endround, clc_initactorstates, clc_nop, clc_stringcmd, clc_teaminfo, clc_userinfo, Com_DPrintf(), Com_Printf(), cs_free, cs_spawned, DEBUG_SERVER, serverInstanceStatic_s::ge, client_s::lastmessage, MAX_CLC_STRINGCMD, serverInstanceGame_s::messageBuffer, NET_ReadString(), client_s::player, serverInstanceStatic_s::realtime, serverInstanceStatic_s::serverMutex, client_s::state, sv, SV_DropClient(), SV_ExecuteUserCommand(), SV_SetClientState(), SV_UserinfoChanged(), svs, and client_s::userinfo.
Referenced by SV_ReadPacket().
Definition at line 214 of file sv_user.cpp.
References Cmd_Argv(), Cmd_TokenizeString(), Com_DPrintf(), Com_ServerState(), DEBUG_SERVER, serverInstanceStatic_s::ge, ucmd_t::name, client_s::player, Q_streq, serverInstanceStatic_s::serverMutex, ss_game, and svs.
Referenced by SV_ExecuteClientMessage().
server_state_t SV_GetServerState | ( | void | ) |
Definition at line 312 of file sv_user.cpp.
References serverInstanceGame_s::state, and sv.
Referenced by Com_ServerState().
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.
Definition at line 56 of file sv_user.cpp.
References CL_PRECACHE, Com_DPrintf(), Com_Printf(), Com_ServerState(), cs_connected, CS_MODELS, CS_NAME, CS_POSITIONS, cs_spawning, CS_TILES, DEBUG_SERVER, i, MAX_CONFIGSTRINGS, client_s::name, NET_WriteByte(), NET_WriteLong(), NET_WriteMsg(), NET_WriteShort(), NET_WriteString(), PROTOCOL_VERSION, Q_strvalid, ss_game, client_s::state, client_s::stream, SV_ClientCommand(), SV_DropClient(), SV_GetClient(), SV_GetConfigString(), SV_SetClientState(), svc_configstring, and svc_serverdata.
void SV_SetClientState | ( | client_t * | client, |
client_state_t | state | ||
) |
Set the client state.
Definition at line 36 of file sv_user.cpp.
References Com_DPrintf(), DEBUG_SERVER, client_s::name, and client_s::state.
Referenced by SV_Begin_f(), SV_DropClient(), SV_ExecuteClientMessage(), SV_Map(), SV_New_f(), and SVC_DirectConnect().
void SV_SetServerState | ( | server_state_t | state | ) |
Definition at line 317 of file sv_user.cpp.
References serverInstanceGame_s::state, and sv.
Dumps the serverinfo info string.
Definition at line 185 of file sv_user.cpp.
References Cvar_Serverinfo(), Info_Print(), and MAX_INFO_STRING.
Definition at line 154 of file sv_user.cpp.
References Cbuf_InsertFromDefer(), Com_DPrintf(), cs_spawned, DEBUG_SERVER, serverInstanceStatic_s::ge, client_s::name, client_s::player, serverInstanceStatic_s::serverMutex, client_s::state, SV_DropClient(), and svs.
|
static |
Definition at line 197 of file sv_user.cpp.