class

FNetSessionPlatform

The one place the platform's lobby/invite surface is reached from, and the single owner of the Steam join-requested delegate. Everything is a safe no-op (false / empty) when Steam is absent or the SDK was not compiled in.

Module
Networking
Header
#include "Networking/Session/NetSessionPlatform.h"
Namespace
Mowo

Type aliases

AliasDescription
using JoinRequestedCallback = std::function<void(uint64_t hostSteamId)>
using LobbyListCallback = std::function<void(const std::vector<FPlatformLobbyInfo>&)>

Public functions

ReturnsNameDescription
boolIsSteamAvailable
uint64_tGetLocalPlatformId
boolIsDlcInstalled
boolCreateLobby
boolJoinLobby
voidLeaveLobby
boolIsInLobby
uint64_tGetCurrentLobbyId
uint64_tGetLobbyHostSteamId
boolRequestLobbyListBrowse public lobbies.
voidAdvertiseSessionHost side of the handoff: publish the host SteamID64 + session name so a friend's "Join Game" resolves to an address the Steam P2P transport can dial.
voidClearAdvertisement
voidSetRichPresence
voidClearRichPresence
voidSetRichPresenceValueRaw presence keys and the friends-list party, fanned to every service.
voidSetPresenceGroup
voidClearPresenceGroup
voidSetJoinRequestedCallbackJoin-requested delegate, two slots with a fixed priority.
voidClearJoinRequestedCallback
boolHasJoinRequestedCallback
voidSetFallbackJoinHandler
boolHasFallbackJoinHandler
boolDispatchJoinRequestedEntry point of an accepted invite.
uint64_tGetLastJoinRequestHostHost ids handed to DispatchJoinRequested, newest last.
uint32_tGetJoinRequestCount
voidResetJoinRequestStats

Function details

IsSteamAvailable

C++
static bool IsSteamAvailable()

GetLocalPlatformId

C++
static uint64_t GetLocalPlatformId()

IsDlcInstalled

C++
static bool IsDlcInstalled(uint32_t steamAppId)

CreateLobby

C++
static bool CreateLobby(int32_t maxPlayers)

JoinLobby

C++
static bool JoinLobby(uint64_t lobbyId)

LeaveLobby

C++
static void LeaveLobby()

IsInLobby

C++
static bool IsInLobby()

GetCurrentLobbyId

C++
static uint64_t GetCurrentLobbyId()

GetLobbyHostSteamId

C++
static uint64_t GetLobbyHostSteamId()

RequestLobbyList

C++
static bool RequestLobbyList(LobbyListCallback callback)

Browse public lobbies. Fires the callback with an empty list when Steam is unavailable, so a caller never has to branch on the build flavour.

AdvertiseSession

C++
static void AdvertiseSession(const std::string& sessionName, int32_t maxPlayers)

Host side of the handoff: publish the host SteamID64 + session name so a friend's "Join Game" resolves to an address the Steam P2P transport can dial. Paired with ClearAdvertisement when the session ends.

ClearAdvertisement

C++
static void ClearAdvertisement()

SetRichPresence

C++
static void SetRichPresence(const std::string& details, const std::string& state)

ClearRichPresence

C++
static void ClearRichPresence()

SetRichPresenceValue

C++
static void SetRichPresenceValue(const std::string& key, const std::string& value)

Raw presence keys and the friends-list party, fanned to every service. FNetSession keeps the party current on its own: the group is the host's platform id (the session name without one) and the size the roster.

SetPresenceGroup

C++
static void SetPresenceGroup(const std::string& groupId, int32_t groupSize)

ClearPresenceGroup

C++
static void ClearPresenceGroup()

SetJoinRequestedCallback

C++
static void SetJoinRequestedCallback(JoinRequestedCallback callback)

Join-requested delegate, two slots with a fixed priority. The session layer claims the first; the engine-level fallback (MPlatformSubsystem's raw transport connect) only runs when no session handler is installed. Two owners used to race for one slot, so whichever initialized last silently disabled the other.

ClearJoinRequestedCallback

C++
static void ClearJoinRequestedCallback()

HasJoinRequestedCallback

C++
static bool HasJoinRequestedCallback()

SetFallbackJoinHandler

C++
static void SetFallbackJoinHandler(JoinRequestedCallback callback)

HasFallbackJoinHandler

C++
static bool HasFallbackJoinHandler()

DispatchJoinRequested

C++
static bool DispatchJoinRequested(uint64_t hostSteamId)

Entry point of an accepted invite. Called by the Steam callback and directly by the self-tests, which is what makes the handoff state machine testable without a Steam client.

GetLastJoinRequestHost

C++
static uint64_t GetLastJoinRequestHost()

Host ids handed to DispatchJoinRequested, newest last. Diagnostics for the invite path, which is otherwise invisible until a peer connects.

GetJoinRequestCount

C++
static uint32_t GetJoinRequestCount()

ResetJoinRequestStats

C++
static void ResetJoinRequestStats()
Generated from Networking/Session/NetSessionPlatform.h via networking.json · Nov 4, 2026Version 1.0.0