UFO: Alien Invasion
Loading...
Searching...
No Matches
mp_serverlist.h File Reference

Serverlist management headers for multiplayer. More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  serverList_t

Macros

#define MAX_BOOKMARKS   16

Functions

void GAME_MP_PingServers_f (void)
 The first function called when entering the multiplayer menu, then CL_Frame takes over.
void GAME_MP_ParseTeamInfoMessage (dbuffer *msg)
 Team selection text.
void CL_ParseServerInfoMessage (dbuffer *msg, const char *hostname)
void GAME_MP_ServerListInit (const struct cgame_import_s *import)
void GAME_MP_ServerListShutdown (void)

Variables

serverList_tselectedServer

Detailed Description

Serverlist management headers for multiplayer.

Definition in file mp_serverlist.h.

Macro Definition Documentation

◆ MAX_BOOKMARKS

#define MAX_BOOKMARKS   16

Function Documentation

◆ CL_ParseServerInfoMessage()

void CL_ParseServerInfoMessage ( dbuffer * msg,
const char * hostname )

◆ GAME_MP_ParseTeamInfoMessage()

void GAME_MP_ParseTeamInfoMessage ( dbuffer * msg)

Team selection text.

This function fills the multiplayer_selectteam menu with content

See also
NET_OOB_Printf
SVC_TeamInfo
GAME_MP_SelectTeam_Init_f
Todo
warning must not be into the player list. if we see this we are the first player that would be connected to the server

Definition at line 208 of file mp_serverlist.cpp.

References _, cgi, DEBUG_CLIENT, Info_IntegerForKey(), Info_ValueForKey(), MAX_TEAMS, OBJZERO, TEAM_NO_ACTIVE, teamData, TEXT_MULTIPLAYER_USERLIST, TEXT_MULTIPLAYER_USERTEAM, user, and va().

Referenced by GAME_MP_HandleServerCommand().

◆ GAME_MP_PingServers_f()

void GAME_MP_PingServers_f ( void )

The first function called when entering the multiplayer menu, then CL_Frame takes over.

See also
GAME_MP_ParseServerInfoMessage
Note
Use a parameter for pingservers to update the current serverlist

Definition at line 531 of file mp_serverlist.cpp.

References cgi, DEBUG_CLIENT, DOUBLEQUOTE, GAME_MP_QueryMasterServerThread(), GAME_MP_ServerListDiscoveryCallback(), i, lastServerQuery, netDatagramSocket, OBJZERO, PORT_CLIENT, PORT_SERVER, Q_streq, selectedServer, serverList, serverListLength, serverListPos, SERVERQUERYTIMEOUT, serversAlreadyQueried, serverText, and TEXT_LIST.

◆ GAME_MP_ServerListInit()

void GAME_MP_ServerListInit ( const struct cgame_import_s * import)

◆ GAME_MP_ServerListShutdown()

void GAME_MP_ServerListShutdown ( void )

Definition at line 597 of file mp_serverlist.cpp.

References cgi, netDatagramSocket, and serverListCmds.

Referenced by GAME_MP_Shutdown().

Variable Documentation

◆ selectedServer