Rise
The Vieneo Province
Loading...
Searching...
No Matches
ISteamGameServer Class Referenceabstract

#include <isteamgameserver.h>

Public Member Functions

virtual void SetProduct (const char *pszProduct)=0
 This is called by SteamGameServer_Init, and you will usually not need to call it directly.
virtual void SetGameDescription (const char *pszGameDescription)=0
virtual void SetModDir (const char *pszModDir)=0
virtual void SetDedicatedServer (bool bDedicated)=0
 Is this is a dedicated server? The default value is false.
virtual void LogOn (const char *pszToken)=0
virtual void LogOnAnonymous ()=0
virtual void LogOff ()=0
 Begin process of logging game server out of steam.
virtual bool BLoggedOn ()=0
virtual bool BSecure ()=0
virtual CSteamID GetSteamID ()=0
virtual bool WasRestartRequested ()=0
virtual void SetMaxPlayerCount (int cPlayersMax)=0
 Max player count that will be reported to server browser and client queries.
virtual void SetBotPlayerCount (int cBotplayers)=0
 Number of bots. Default value is zero.
virtual void SetServerName (const char *pszServerName)=0
virtual void SetMapName (const char *pszMapName)=0
virtual void SetPasswordProtected (bool bPasswordProtected)=0
 Let people know if your server will require a password.
virtual void SetSpectatorPort (uint16 unSpectatorPort)=0
virtual void SetSpectatorServerName (const char *pszSpectatorServerName)=0
virtual void ClearAllKeyValues ()=0
 Call this to clear the whole list of key/values that are sent in rules queries.
virtual void SetKeyValue (const char *pKey, const char *pValue)=0
 Call this to add/update a key/value pair.
virtual void SetGameTags (const char *pchGameTags)=0
virtual void SetGameData (const char *pchGameData)=0
virtual void SetRegion (const char *pszRegion)=0
 Region identifier. This is an optional field, the default value is empty, meaning the "world" region.
virtual void SetAdvertiseServerActive (bool bActive)=0
virtual HAuthTicket GetAuthSessionTicket (void *pTicket, int cbMaxTicket, uint32 *pcbTicket, const SteamNetworkingIdentity *pSnid)=0
virtual EBeginAuthSessionResult BeginAuthSession (const void *pAuthTicket, int cbAuthTicket, CSteamID steamID)=0
virtual void EndAuthSession (CSteamID steamID)=0
virtual void CancelAuthTicket (HAuthTicket hAuthTicket)=0
virtual EUserHasLicenseForAppResult UserHasLicenseForApp (CSteamID steamID, AppId_t appID)=0
virtual bool RequestUserGroupStatus (CSteamID steamIDUser, CSteamID steamIDGroup)=0
virtual void GetGameplayStats ()=0
virtual SteamAPICall_t GetServerReputation ()=0
virtual SteamIPAddress_t GetPublicIP ()=0
virtual bool HandleIncomingPacket (const void *pData, int cbData, uint32 srcIP, uint16 srcPort)=0
virtual int GetNextOutgoingPacket (void *pOut, int cbMaxOut, uint32 *pNetAdr, uint16 *pPort)=0
virtual SteamAPICall_t AssociateWithClan (CSteamID steamIDClan)=0
virtual SteamAPICall_t ComputeNewPlayerCompatibility (CSteamID steamIDNewPlayer)=0
virtual bool SendUserConnectAndAuthenticate_DEPRECATED (uint32 unIPClient, const void *pvAuthBlob, uint32 cubAuthBlobSize, CSteamID *pSteamIDUser)=0
virtual CSteamID CreateUnauthenticatedUserConnection ()=0
virtual void SendUserDisconnect_DEPRECATED (CSteamID steamIDUser)=0
virtual bool BUpdateUserData (CSteamID steamIDUser, const char *pchPlayerName, uint32 uScore)=0

Detailed Description

Definition at line 18 of file isteamgameserver.h.

Member Function Documentation

◆ AssociateWithClan()

virtual SteamAPICall_t ISteamGameServer::AssociateWithClan ( CSteamID steamIDClan)
pure virtual
Here is the call graph for this function:
Here is the caller graph for this function:

◆ BeginAuthSession()

virtual EBeginAuthSessionResult ISteamGameServer::BeginAuthSession ( const void * pAuthTicket,
int cbAuthTicket,
CSteamID steamID )
pure virtual

◆ BLoggedOn()

virtual bool ISteamGameServer::BLoggedOn ( )
pure virtual

◆ BSecure()

virtual bool ISteamGameServer::BSecure ( )
pure virtual

◆ BUpdateUserData()

virtual bool ISteamGameServer::BUpdateUserData ( CSteamID steamIDUser,
const char * pchPlayerName,
uint32 uScore )
pure virtual
Here is the call graph for this function:
Here is the caller graph for this function:

◆ CancelAuthTicket()

virtual void ISteamGameServer::CancelAuthTicket ( HAuthTicket hAuthTicket)
pure virtual

◆ ClearAllKeyValues()

virtual void ISteamGameServer::ClearAllKeyValues ( )
pure virtual

Call this to clear the whole list of key/values that are sent in rules queries.

◆ ComputeNewPlayerCompatibility()

virtual SteamAPICall_t ISteamGameServer::ComputeNewPlayerCompatibility ( CSteamID steamIDNewPlayer)
pure virtual
Here is the call graph for this function:
Here is the caller graph for this function:

◆ CreateUnauthenticatedUserConnection()

virtual CSteamID ISteamGameServer::CreateUnauthenticatedUserConnection ( )
pure virtual
Here is the call graph for this function:
Here is the caller graph for this function:

◆ EndAuthSession()

virtual void ISteamGameServer::EndAuthSession ( CSteamID steamID)
pure virtual

◆ GetAuthSessionTicket()

virtual HAuthTicket ISteamGameServer::GetAuthSessionTicket ( void * pTicket,
int cbMaxTicket,
uint32 * pcbTicket,
const SteamNetworkingIdentity * pSnid )
pure virtual

◆ GetGameplayStats()

virtual void ISteamGameServer::GetGameplayStats ( )
pure virtual

◆ GetNextOutgoingPacket()

virtual int ISteamGameServer::GetNextOutgoingPacket ( void * pOut,
int cbMaxOut,
uint32 * pNetAdr,
uint16 * pPort )
pure virtual
Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetPublicIP()

virtual SteamIPAddress_t ISteamGameServer::GetPublicIP ( )
pure virtual
Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetServerReputation()

virtual SteamAPICall_t ISteamGameServer::GetServerReputation ( )
pure virtual
Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetSteamID()

virtual CSteamID ISteamGameServer::GetSteamID ( )
pure virtual

◆ HandleIncomingPacket()

virtual bool ISteamGameServer::HandleIncomingPacket ( const void * pData,
int cbData,
uint32 srcIP,
uint16 srcPort )
pure virtual
Here is the call graph for this function:
Here is the caller graph for this function:

◆ LogOff()

virtual void ISteamGameServer::LogOff ( )
pure virtual

Begin process of logging game server out of steam.

◆ LogOn()

virtual void ISteamGameServer::LogOn ( const char * pszToken)
pure virtual

Begin process to login to a persistent game server account

You need to register for callbacks to determine the result of this operation.

See also
SteamServersConnected_t
SteamServerConnectFailure_t
SteamServersDisconnected_t

◆ LogOnAnonymous()

virtual void ISteamGameServer::LogOnAnonymous ( )
pure virtual

Login to a generic, anonymous account.

Note: in previous versions of the SDK, this was automatically called within SteamGameServer_Init, but this is no longer the case.

◆ RequestUserGroupStatus()

virtual bool ISteamGameServer::RequestUserGroupStatus ( CSteamID steamIDUser,
CSteamID steamIDGroup )
pure virtual

◆ SendUserConnectAndAuthenticate_DEPRECATED()

virtual bool ISteamGameServer::SendUserConnectAndAuthenticate_DEPRECATED ( uint32 unIPClient,
const void * pvAuthBlob,
uint32 cubAuthBlobSize,
CSteamID * pSteamIDUser )
pure virtual
Here is the call graph for this function:
Here is the caller graph for this function:

◆ SendUserDisconnect_DEPRECATED()

virtual void ISteamGameServer::SendUserDisconnect_DEPRECATED ( CSteamID steamIDUser)
pure virtual
Here is the call graph for this function:
Here is the caller graph for this function:

◆ SetAdvertiseServerActive()

virtual void ISteamGameServer::SetAdvertiseServerActive ( bool bActive)
pure virtual

Indicate whether you wish to be listed on the master server list and/or respond to server browser / LAN discovery packets. The server starts with this value set to false. You should set all relevant server parameters before enabling advertisement on the server.

(This function used to be named EnableHeartbeats, so if you are wondering where that function went, it's right here. It does the same thing as before, the old name was just confusing.)

◆ SetBotPlayerCount()

virtual void ISteamGameServer::SetBotPlayerCount ( int cBotplayers)
pure virtual

Number of bots. Default value is zero.

◆ SetDedicatedServer()

virtual void ISteamGameServer::SetDedicatedServer ( bool bDedicated)
pure virtual

Is this is a dedicated server? The default value is false.

◆ SetGameData()

virtual void ISteamGameServer::SetGameData ( const char * pchGameData)
pure virtual

Sets a string defining the "gamedata" for this server, this is optional, but if it is set it allows users to filter in the matchmaking/server-browser interfaces based on the value

See also
k_cbMaxGameServerGameData

◆ SetGameDescription()

virtual void ISteamGameServer::SetGameDescription ( const char * pszGameDescription)
pure virtual

Description of the game. This is a required field and is displayed in the steam server browser....for now. This is a required field, but it will go away eventually, as the data should be determined from the AppID.

◆ SetGameTags()

virtual void ISteamGameServer::SetGameTags ( const char * pchGameTags)
pure virtual

Sets a string defining the "gametags" for this server, this is optional, but if it is set it allows users to filter in the matchmaking/server-browser interfaces based on the value

See also
k_cbMaxGameServerTags

◆ SetKeyValue()

virtual void ISteamGameServer::SetKeyValue ( const char * pKey,
const char * pValue )
pure virtual

Call this to add/update a key/value pair.

◆ SetMapName()

virtual void ISteamGameServer::SetMapName ( const char * pszMapName)
pure virtual

Set name of map to report in the server browser

See also
k_cbMaxGameServerMapName

◆ SetMaxPlayerCount()

virtual void ISteamGameServer::SetMaxPlayerCount ( int cPlayersMax)
pure virtual

Max player count that will be reported to server browser and client queries.

◆ SetModDir()

virtual void ISteamGameServer::SetModDir ( const char * pszModDir)
pure virtual

If your game is a "mod," pass the string that identifies it. The default is an empty string, meaning this application is the original game, not a mod.

See also
k_cbMaxGameServerGameDir

◆ SetPasswordProtected()

virtual void ISteamGameServer::SetPasswordProtected ( bool bPasswordProtected)
pure virtual

Let people know if your server will require a password.

◆ SetProduct()

virtual void ISteamGameServer::SetProduct ( const char * pszProduct)
pure virtual

This is called by SteamGameServer_Init, and you will usually not need to call it directly.

Game product identifier. This is currently used by the master server for version checking purposes. It's a required field, but will eventually will go away, and the AppID will be used for this purpose.

◆ SetRegion()

virtual void ISteamGameServer::SetRegion ( const char * pszRegion)
pure virtual

Region identifier. This is an optional field, the default value is empty, meaning the "world" region.

◆ SetServerName()

virtual void ISteamGameServer::SetServerName ( const char * pszServerName)
pure virtual

Set the name of server as it will appear in the server browser

See also
k_cbMaxGameServerName

◆ SetSpectatorPort()

virtual void ISteamGameServer::SetSpectatorPort ( uint16 unSpectatorPort)
pure virtual

Spectator server port to advertise. The default value is zero, meaning the service is not used. If your server receives any info requests on the LAN, this is the value that will be placed into the reply for such local queries.

This is also the value that will be advertised by the master server. The only exception is if your server is using a FakeIP. Then then the second fake port number (index 1) assigned to your server will be listed on the master server as the spectator port, if you set this value to any nonzero value.

This function merely controls the values that are advertised – it's up to you to configure the server to actually listen on this port and handle any spectator traffic

◆ SetSpectatorServerName()

virtual void ISteamGameServer::SetSpectatorServerName ( const char * pszSpectatorServerName)
pure virtual

Name of the spectator server. (Only used if spectator port is nonzero.)

See also
k_cbMaxGameServerMapName

◆ UserHasLicenseForApp()

virtual EUserHasLicenseForAppResult ISteamGameServer::UserHasLicenseForApp ( CSteamID steamID,
AppId_t appID )
pure virtual

◆ WasRestartRequested()

virtual bool ISteamGameServer::WasRestartRequested ( )
pure virtual

Returns true if the master server has requested a restart. Only returns true once per request.


The documentation for this class was generated from the following file: