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

Serverlist management headers for multiplayer. More...

Go to the source code of this file.

Data Structures

struct  serverList_s
 

Macros

#define MAX_BOOKMARKS   16
 

Typedefs

typedef struct serverList_s serverList_t
 

Functions

void GAME_MP_PingServers_f (void)
 The first function called when entering the multiplayer menu, then CL_Frame takes over. More...
 
void GAME_MP_ParseTeamInfoMessage (dbuffer *msg)
 Team selection text. More...
 
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

#define MAX_BOOKMARKS   16

Typedef Documentation

typedef struct serverList_s serverList_t

Function Documentation

void CL_ParseServerInfoMessage ( dbuffer msg,
const char *  hostname 
)
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 _, DEBUG_CLIENT, Info_IntegerForKey(), Info_ValueForKey(), MAX_TEAMS, teamData_s::maxPlayersPerTeam, teamData_s::maxteams, OBJZERO, TEAM_NO_ACTIVE, teamData_s::teamCount, teamData, TEXT_MULTIPLAYER_USERLIST, TEXT_MULTIPLAYER_USERTEAM, user, and va().

Referenced by GAME_MP_HandleServerCommand().

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 cgame_import_s::Cmd_Argv(), DEBUG_CLIENT, DOUBLEQUOTE, GAME_MP_QueryMasterServerThread(), GAME_MP_ServerListDiscoveryCallback(), i, lastServerQuery, cgame_import_s::NET_DatagramSocketNew(), OBJZERO, PORT_CLIENT, PORT_SERVER, Q_streq, serverListLength, serverListPos, SERVERQUERYTIMEOUT, serversAlreadyQueried, serverText, and TEXT_LIST.

void GAME_MP_ServerListInit ( const struct cgame_import_s import)
void GAME_MP_ServerListShutdown ( void  )

Definition at line 597 of file mp_serverlist.cpp.

Referenced by GAME_MP_Shutdown().

Variable Documentation

serverList_t* selectedServer

Definition at line 39 of file mp_serverlist.cpp.

Referenced by GAME_MP_Connect_f().