Rise
The Vieneo Province
Loading...
Searching...
No Matches
steam_gameserver.h File Reference
#include "steam_api.h"
#include "isteamgameserver.h"
#include "isteamgameserverstats.h"
Include dependency graph for steam_gameserver.h:

Go to the source code of this file.

Enumerations

enum  EServerMode { eServerModeInvalid = 0 , eServerModeNoAuthentication = 1 , eServerModeAuthentication = 2 , eServerModeAuthenticationAndSecure = 3 }

Functions

ESteamAPIInitResult SteamGameServer_InitEx (uint32 unIP, uint16 usGamePort, uint16 usQueryPort, EServerMode eServerMode, const char *pchVersionString, SteamErrMsg *pOutErrMsg)
bool SteamGameServer_Init (uint32 unIP, uint16 usGamePort, uint16 usQueryPort, EServerMode eServerMode, const char *pchVersionString)
S_API void SteamGameServer_Shutdown ()
void SteamGameServer_ReleaseCurrentThreadMemory ()
S_API bool SteamGameServer_BSecure ()
S_API uint64 SteamGameServer_GetSteamID ()
S_API ESteamAPIInitResult S_CALLTYPE SteamInternal_GameServer_Init_V2 (uint32 unIP, uint16 usGamePort, uint16 usQueryPort, EServerMode eServerMode, const char *pchVersionString, const char *pszInternalCheckInterfaceVersions, SteamErrMsg *pOutErrMsg)

Variables

const uint16 STEAMGAMESERVER_QUERY_PORT_SHARED = 0xffff
const uint16 MASTERSERVERUPDATERPORT_USEGAMESOCKETSHARE = STEAMGAMESERVER_QUERY_PORT_SHARED

Enumeration Type Documentation

◆ EServerMode

Enumerator
eServerModeInvalid 
eServerModeNoAuthentication 
eServerModeAuthentication 
eServerModeAuthenticationAndSecure 

Definition at line 17 of file steam_gameserver.h.

Function Documentation

◆ SteamGameServer_BSecure()

S_API bool SteamGameServer_BSecure ( )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ SteamGameServer_GetSteamID()

S_API uint64 SteamGameServer_GetSteamID ( )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ SteamGameServer_Init()

bool SteamGameServer_Init ( uint32 unIP,
uint16 usGamePort,
uint16 usQueryPort,
EServerMode eServerMode,
const char * pchVersionString )
inline

Definition at line 58 of file steam_gameserver.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ SteamGameServer_InitEx()

ESteamAPIInitResult SteamGameServer_InitEx ( uint32 unIP,
uint16 usGamePort,
uint16 usQueryPort,
EServerMode eServerMode,
const char * pchVersionString,
SteamErrMsg * pOutErrMsg )
inline

Definition at line 92 of file steam_gameserver.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ SteamGameServer_ReleaseCurrentThreadMemory()

void SteamGameServer_ReleaseCurrentThreadMemory ( )
inline

Definition at line 109 of file steam_gameserver.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ SteamGameServer_Shutdown()

S_API void SteamGameServer_Shutdown ( )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ SteamInternal_GameServer_Init_V2()

S_API ESteamAPIInitResult S_CALLTYPE SteamInternal_GameServer_Init_V2 ( uint32 unIP,
uint16 usGamePort,
uint16 usQueryPort,
EServerMode eServerMode,
const char * pchVersionString,
const char * pszInternalCheckInterfaceVersions,
SteamErrMsg * pOutErrMsg )
Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ MASTERSERVERUPDATERPORT_USEGAMESOCKETSHARE

const uint16 MASTERSERVERUPDATERPORT_USEGAMESOCKETSHARE = STEAMGAMESERVER_QUERY_PORT_SHARED

Definition at line 32 of file steam_gameserver.h.

◆ STEAMGAMESERVER_QUERY_PORT_SHARED

const uint16 STEAMGAMESERVER_QUERY_PORT_SHARED = 0xffff

Pass to SteamGameServer_Init to indicate that the same UDP port will be used for game traffic UDP queries for server browser pings and LAN discovery. In this case, Steam will not open up a socket to handle server browser queries, and you must use ISteamGameServer::HandleIncomingPacket and ISteamGameServer::GetNextOutgoingPacket to handle packets related to server discovery on your socket.

Definition at line 29 of file steam_gameserver.h.