Documentation for the Unreal C++ Library
Loading...
Searching...
No Matches
FPVROnlineSession Class Reference

#include <PVROnlineSession.h>

Inheritance diagram for FPVROnlineSession:
[legend]

Public Member Functions

virtual ~FPVROnlineSession ()
 
virtual bool CancelFindSessions () override
 
virtual bool CancelMatchmaking (const FUniqueNetId &SearchingPlayerId, FName SessionName) override
 
virtual bool CancelMatchmaking (int32 SearchingPlayerNum, FName SessionName) override
 
uint32 CreateInternetSession (int32 HostingPlayerNum, FNamedOnlineSession *Session)
 
uint32 CreateLANSession (int32 HostingPlayerNum, FNamedOnlineSession *Session)
 
virtual bool CreateSession (const FUniqueNetId &HostingPlayerId, FName SessionName, const FOnlineSessionSettings &NewSessionSettings) override
 
virtual bool CreateSession (int32 HostingPlayerNum, FName SessionName, const FOnlineSessionSettings &NewSessionSettings) override
 
virtual TSharedPtr< const FUniqueNetId > CreateSessionIdFromString (const FString &SessionIdStr) override
 
 DEFINE_ONLINE_DELEGATE (OnFindSessionsStart)
 
 DEFINE_ONLINE_DELEGATE (OnJoinSessionStart)
 
uint32 DestroyInternetSession (FNamedOnlineSession *Session, const FOnDestroySessionCompleteDelegate &CompletionDelegate=FOnDestroySessionCompleteDelegate())
 
uint32 DestroyLANSession (FName SessionName, const FOnDestroySessionCompleteDelegate &CompletionDelegate=FOnDestroySessionCompleteDelegate())
 
virtual bool DestroySession (FName SessionName, const FOnDestroySessionCompleteDelegate &CompletionDelegate=FOnDestroySessionCompleteDelegate()) override
 
virtual void DumpSessionState () override
 
uint32 EndInternetSession (FNamedOnlineSession *Session)
 
virtual bool EndSession (FName SessionName) override
 
virtual bool FindFriendSession (const FUniqueNetId &LocalUserId, const FUniqueNetId &Friend) override
 
virtual bool FindFriendSession (const FUniqueNetId &LocalUserId, const TArray< TSharedRef< const FUniqueNetId > > &FriendList) override
 
virtual bool FindFriendSession (int32 LocalUserNum, const FUniqueNetId &Friend) override
 
virtual bool FindSessionById (const FUniqueNetId &SearchingUserId, const FUniqueNetId &SessionId, const FUniqueNetId &FriendId, const FOnSingleSessionResultCompleteDelegate &CompletionDelegate) override
 
virtual bool FindSessions (const FUniqueNetId &SearchingPlayerId, const TSharedRef< FOnlineSessionSearch > &SearchSettings) override
 
virtual bool FindSessions (int32 SearchingPlayerNum, const TSharedRef< FOnlineSessionSearch > &SearchSettings) override
 
FNamedOnlineSession * GetFirstNamedSession ()
 
FNamedOnlineSession * GetNamedSession (FName SessionName) override
 
virtual int32 GetNumSessions () override
 
virtual bool GetResolvedConnectString (const FOnlineSessionSearchResult &SearchResult, FName PortType, FString &ConnectInfo) override
 
virtual bool GetResolvedConnectString (FName SessionName, FString &ConnectInfo, FName PortType) override
 
virtual FOnlineSessionSettings * GetSessionSettings (FName SessionName) override
 
virtual EOnlineSessionState::Type GetSessionState (FName SessionName) const override
 
virtual bool HasPresenceSession () override
 
virtual bool IsPlayerInSession (FName SessionName, const FUniqueNetId &UniqueId) override
 
virtual bool JoinSession (const FUniqueNetId &PlayerId, FName SessionName, const FOnlineSessionSearchResult &DesiredSession) override
 
virtual bool JoinSession (int32 PlayerNum, FName SessionName, const FOnlineSessionSearchResult &DesiredSession) override
 
void OnSessionListenPortChanged (int32 Port)
 
virtual bool PingSearchResults (const FOnlineSessionSearchResult &SearchResult) override
 
virtual void RegisterLocalPlayer (const FUniqueNetId &PlayerId, FName SessionName, const FOnRegisterLocalPlayerCompleteDelegate &Delegate) override
 
virtual bool RegisterPlayer (FName SessionName, const FUniqueNetId &PlayerId, bool bWasInvited) override
 
virtual bool RegisterPlayers (FName SessionName, const TArray< TSharedRef< const FUniqueNetId > > &Players, bool bWasInvited=false) override
 
virtual void RemoveNamedSession (FName SessionName) override
 
virtual bool SendSessionInviteToFriend (const FUniqueNetId &LocalUserId, FName SessionName, const FUniqueNetId &Friend) override
 
virtual bool SendSessionInviteToFriend (int32 LocalUserNum, FName SessionName, const FUniqueNetId &Friend) override
 
virtual bool SendSessionInviteToFriends (const FUniqueNetId &LocalUserId, FName SessionName, const TArray< TSharedRef< const FUniqueNetId > > &Friends) override
 
virtual bool SendSessionInviteToFriends (int32 LocalUserNum, FName SessionName, const TArray< TSharedRef< const FUniqueNetId > > &Friends) override
 
virtual bool StartMatchmaking (const TArray< TSharedRef< const FUniqueNetId > > &LocalPlayers, FName SessionName, const FOnlineSessionSettings &NewSessionSettings, TSharedRef< FOnlineSessionSearch > &SearchSettings) override
 
virtual bool StartSession (FName SessionName) override
 
virtual void UnregisterLocalPlayer (const FUniqueNetId &PlayerId, FName SessionName, const FOnUnregisterLocalPlayerCompleteDelegate &Delegate) override
 
virtual bool UnregisterPlayer (FName SessionName, const FUniqueNetId &PlayerId) override
 
virtual bool UnregisterPlayers (FName SessionName, const TArray< TSharedRef< const FUniqueNetId > > &Players) override
 
virtual bool UpdateSession (FName SessionName, FOnlineSessionSettings &UpdatedSessionSettings, bool bShouldRefreshOnlineData=true) override
 

Public Attributes

int32 HostSessionPort
 

Protected Member Functions

 FPVROnlineSession (class FPVROSubsystem *InSubsystem)
 
class FNamedOnlineSession * AddNamedSession (FName SessionName, const FOnlineSession &Session) override
 
class FNamedOnlineSession * AddNamedSession (FName SessionName, const FOnlineSessionSettings &SessionSettings) override
 
void CheckMatchesFound (TSharedPtr< FJsonObject > &JsonMessageObject)
 
void CheckPendingSessionInvite ()
 
bool ClearSessionSearch (EOnlineAsyncTaskState::Type TaskState=EOnlineAsyncTaskState::Done)
 
FString GetCustomDedicatedServerName () const
 Returns the custom server name if specified as argument.
 
void GetHostAndPort (int32 &Host, int32 &Port, const FString &HostIP, const FString &HostPort)
 
void HandleMessageReceived (const FString &InJsonMessage)
 
void RegisterLocalPlayers (class FNamedOnlineSession *Session)
 
void RegisterVoice (const FUniqueNetId &PlayerId)
 
void Tick (float DeltaTime)
 
void UnregisterLocalPlayers (class FNamedOnlineSession *Session)
 
void UnregisterVoice (const FUniqueNetId &PlayerId)
 

Protected Attributes

TSharedPtr< FOnlineSessionSearch > CurrentSessionSearch
 
TSharedPtr< FUniqueNetIdPixoVR > GameServerPixoVRId
 
FCriticalSection SessionLock
 
TArray< FNamedOnlineSession > Sessions
 
double SessionSearchEndTime
 
double SessionSearchStartTime
 

Private Member Functions

 FPVROnlineSession ()
 
uint32 FinalizeLANSearch ()
 
uint32 FindInternetSession (const TSharedRef< FOnlineSessionSearch > &SearchSettings)
 
uint32 FindLANSession (const TSharedRef< FOnlineSessionSearch > &SearchSettings)
 
bool IsHost (const FNamedOnlineSession &Session) const
 
bool IsSessionJoinable (const FNamedOnlineSession &Session) const
 
uint32 JoinInternetSession (int32 PlayerNum, class FNamedOnlineSession *Session, const class FOnlineSession *SearchSession)
 
bool NeedsToAdvertise ()
 
bool NeedsToAdvertise (FNamedOnlineSession &Session)
 
void OnLANSearchTimeout ()
 
void OnValidQueryPacketReceived (uint8 *PacketData, int32 PacketLength, uint64 ClientNonce)
 
void OnValidResponsePacketReceived (uint8 *PacketData, int32 PacketLength)
 
void TickLanTasks (float DeltaTime)
 
uint32 UpdateLANStatus ()
 

Static Private Member Functions

static void SetPortFromNetDriver (const FPVROSubsystem &Subsystem, const TSharedPtr< FOnlineSessionInfo > &SessionInfo)
 

Private Attributes

FPVROSession LANSessionManager
 
class FPVROSubsystemSubsystem
 

Detailed Description

Interface definition for the online services session services Session services are defined as anything related managing a session and its state within a platform service

Definition at line 33 of file PVROnlineSession.h.

Constructor & Destructor Documentation

◆ FPVROnlineSession() [1/2]

FPVROnlineSession::FPVROnlineSession ( )
inlineprivate

Hidden on purpose

Definition at line 44 of file PVROnlineSession.h.

◆ FPVROnlineSession() [2/2]

FPVROnlineSession::FPVROnlineSession ( class FPVROSubsystem * InSubsystem)
protected

Definition at line 73 of file PVROnlineSession.cpp.

Here is the call graph for this function:

◆ ~FPVROnlineSession()

virtual FPVROnlineSession::~FPVROnlineSession ( )
inlinevirtual

Definition at line 232 of file PVROnlineSession.h.

Member Function Documentation

◆ AddNamedSession() [1/2]

class FNamedOnlineSession * FPVROnlineSession::AddNamedSession ( FName SessionName,
const FOnlineSession & Session )
inlineoverrideprotected

Definition at line 182 of file PVROnlineSession.h.

◆ AddNamedSession() [2/2]

class FNamedOnlineSession * FPVROnlineSession::AddNamedSession ( FName SessionName,
const FOnlineSessionSettings & SessionSettings )
inlineoverrideprotected

Definition at line 176 of file PVROnlineSession.h.

Here is the caller graph for this function:

◆ CancelFindSessions()

bool FPVROnlineSession::CancelFindSessions ( )
overridevirtual

Definition at line 717 of file PVROnlineSession.cpp.

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

◆ CancelMatchmaking() [1/2]

bool FPVROnlineSession::CancelMatchmaking ( const FUniqueNetId & SearchingPlayerId,
FName SessionName )
overridevirtual

Definition at line 605 of file PVROnlineSession.cpp.

◆ CancelMatchmaking() [2/2]

bool FPVROnlineSession::CancelMatchmaking ( int32 SearchingPlayerNum,
FName SessionName )
overridevirtual

Definition at line 598 of file PVROnlineSession.cpp.

◆ CheckMatchesFound()

void FPVROnlineSession::CheckMatchesFound ( TSharedPtr< FJsonObject > & JsonMessageObject)
protected

Definition at line 127 of file PVROnlineSession.cpp.

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

◆ CheckPendingSessionInvite()

void FPVROnlineSession::CheckPendingSessionInvite ( )
protected

Parse the command line for invite/join information at launch

◆ ClearSessionSearch()

bool FPVROnlineSession::ClearSessionSearch ( EOnlineAsyncTaskState::Type TaskState = EOnlineAsyncTaskState::Done)
protected

Definition at line 697 of file PVROnlineSession.cpp.

Here is the caller graph for this function:

◆ CreateInternetSession()

uint32 FPVROnlineSession::CreateInternetSession ( int32 HostingPlayerNum,
FNamedOnlineSession * Session )

Definition at line 179 of file PVROnlineSession.cpp.

Here is the caller graph for this function:

◆ CreateLANSession()

uint32 FPVROnlineSession::CreateLANSession ( int32 HostingPlayerNum,
FNamedOnlineSession * Session )

Definition at line 186 of file PVROnlineSession.cpp.

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

◆ CreateSession() [1/2]

bool FPVROnlineSession::CreateSession ( const FUniqueNetId & HostingPlayerId,
FName SessionName,
const FOnlineSessionSettings & NewSessionSettings )
overridevirtual

Definition at line 296 of file PVROnlineSession.cpp.

Here is the call graph for this function:

◆ CreateSession() [2/2]

bool FPVROnlineSession::CreateSession ( int32 HostingPlayerNum,
FName SessionName,
const FOnlineSessionSettings & NewSessionSettings )
overridevirtual

Definition at line 214 of file PVROnlineSession.cpp.

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

◆ CreateSessionIdFromString()

TSharedPtr< const FUniqueNetId > FPVROnlineSession::CreateSessionIdFromString ( const FString & SessionIdStr)
overridevirtual

Definition at line 1314 of file PVROnlineSession.cpp.

◆ DEFINE_ONLINE_DELEGATE() [1/2]

FPVROnlineSession::DEFINE_ONLINE_DELEGATE ( OnFindSessionsStart )

◆ DEFINE_ONLINE_DELEGATE() [2/2]

FPVROnlineSession::DEFINE_ONLINE_DELEGATE ( OnJoinSessionStart )

◆ DestroyInternetSession()

uint32 FPVROnlineSession::DestroyInternetSession ( FNamedOnlineSession * Session,
const FOnDestroySessionCompleteDelegate & CompletionDelegate = FOnDestroySessionCompleteDelegate() )

Definition at line 556 of file PVROnlineSession.cpp.

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

◆ DestroyLANSession()

uint32 FPVROnlineSession::DestroyLANSession ( FName SessionName,
const FOnDestroySessionCompleteDelegate & CompletionDelegate = FOnDestroySessionCompleteDelegate() )

Definition at line 581 of file PVROnlineSession.cpp.

Here is the call graph for this function:

◆ DestroySession()

bool FPVROnlineSession::DestroySession ( FName SessionName,
const FOnDestroySessionCompleteDelegate & CompletionDelegate = FOnDestroySessionCompleteDelegate() )
overridevirtual

Definition at line 509 of file PVROnlineSession.cpp.

Here is the call graph for this function:

◆ DumpSessionState()

void FPVROnlineSession::DumpSessionState ( )
overridevirtual

Definition at line 1268 of file PVROnlineSession.cpp.

◆ EndInternetSession()

uint32 FPVROnlineSession::EndInternetSession ( FNamedOnlineSession * Session)

Definition at line 504 of file PVROnlineSession.cpp.

Here is the caller graph for this function:

◆ EndSession()

bool FPVROnlineSession::EndSession ( FName SessionName)
overridevirtual

Definition at line 456 of file PVROnlineSession.cpp.

Here is the call graph for this function:

◆ FinalizeLANSearch()

uint32 FPVROnlineSession::FinalizeLANSearch ( )
private

Finishes searching over LAN and returns to hosting (if needed)

Returns
ERROR_SUCCESS if successful, an error code otherwise

Definition at line 1232 of file PVROnlineSession.cpp.

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

◆ FindFriendSession() [1/3]

bool FPVROnlineSession::FindFriendSession ( const FUniqueNetId & LocalUserId,
const FUniqueNetId & Friend )
overridevirtual

Definition at line 854 of file PVROnlineSession.cpp.

◆ FindFriendSession() [2/3]

bool FPVROnlineSession::FindFriendSession ( const FUniqueNetId & LocalUserId,
const TArray< TSharedRef< const FUniqueNetId > > & FriendList )
overridevirtual

Definition at line 862 of file PVROnlineSession.cpp.

◆ FindFriendSession() [3/3]

bool FPVROnlineSession::FindFriendSession ( int32 LocalUserNum,
const FUniqueNetId & Friend )
overridevirtual

Definition at line 846 of file PVROnlineSession.cpp.

◆ FindInternetSession()

uint32 FPVROnlineSession::FindInternetSession ( const TSharedRef< FOnlineSessionSearch > & SearchSettings)
private

Will use the Agones to find sessions.

Returns
ERROR_SUCCESS if successful, an error code otherwise

Definition at line 669 of file PVROnlineSession.cpp.

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

◆ FindLANSession()

uint32 FPVROnlineSession::FindLANSession ( const TSharedRef< FOnlineSessionSearch > & SearchSettings)
private

Will use the Agones to find sessions.

Returns
ERROR_SUCCESS if successful, an error code otherwise

Definition at line 688 of file PVROnlineSession.cpp.

◆ FindSessionById()

bool FPVROnlineSession::FindSessionById ( const FUniqueNetId & SearchingUserId,
const FUniqueNetId & SessionId,
const FUniqueNetId & FriendId,
const FOnSingleSessionResultCompleteDelegate & CompletionDelegate )
overridevirtual

Definition at line 662 of file PVROnlineSession.cpp.

◆ FindSessions() [1/2]

bool FPVROnlineSession::FindSessions ( const FUniqueNetId & SearchingPlayerId,
const TSharedRef< FOnlineSessionSearch > & SearchSettings )
overridevirtual

Definition at line 657 of file PVROnlineSession.cpp.

Here is the call graph for this function:

◆ FindSessions() [2/2]

bool FPVROnlineSession::FindSessions ( int32 SearchingPlayerNum,
const TSharedRef< FOnlineSessionSearch > & SearchSettings )
overridevirtual

Definition at line 612 of file PVROnlineSession.cpp.

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

◆ GetCustomDedicatedServerName()

FString FPVROnlineSession::GetCustomDedicatedServerName ( ) const
protected

Returns the custom server name if specified as argument.

Returns
Custom name for the server else a empty string.

Definition at line 1333 of file PVROnlineSession.cpp.

◆ GetFirstNamedSession()

FNamedOnlineSession * FPVROnlineSession::GetFirstNamedSession ( )
inline

Definition at line 239 of file PVROnlineSession.h.

◆ GetHostAndPort()

void FPVROnlineSession::GetHostAndPort ( int32 & Host,
int32 & Port,
const FString & HostIP,
const FString & HostPort )
protected

Definition at line 740 of file PVROnlineSession.cpp.

Here is the caller graph for this function:

◆ GetNamedSession()

FNamedOnlineSession * FPVROnlineSession::GetNamedSession ( FName SessionName)
inlineoverride

Definition at line 249 of file PVROnlineSession.h.

Here is the caller graph for this function:

◆ GetNumSessions()

int32 FPVROnlineSession::GetNumSessions ( )
overridevirtual

Definition at line 1262 of file PVROnlineSession.cpp.

Here is the caller graph for this function:

◆ GetResolvedConnectString() [1/2]

bool FPVROnlineSession::GetResolvedConnectString ( const FOnlineSessionSearchResult & SearchResult,
FName PortType,
FString & ConnectInfo )
overridevirtual

Definition at line 978 of file PVROnlineSession.cpp.

Here is the call graph for this function:

◆ GetResolvedConnectString() [2/2]

bool FPVROnlineSession::GetResolvedConnectString ( FName SessionName,
FString & ConnectInfo,
FName PortType )
overridevirtual

Definition at line 947 of file PVROnlineSession.cpp.

Here is the call graph for this function:

◆ GetSessionSettings()

FOnlineSessionSettings * FPVROnlineSession::GetSessionSettings ( FName SessionName)
overridevirtual

Definition at line 1005 of file PVROnlineSession.cpp.

Here is the call graph for this function:

◆ GetSessionState()

virtual EOnlineSessionState::Type FPVROnlineSession::GetSessionState ( FName SessionName) const
inlineoverridevirtual

Definition at line 275 of file PVROnlineSession.h.

◆ HandleMessageReceived()

void FPVROnlineSession::HandleMessageReceived ( const FString & InJsonMessage)
protected

Definition at line 90 of file PVROnlineSession.cpp.

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

◆ HasPresenceSession()

virtual bool FPVROnlineSession::HasPresenceSession ( )
inlineoverridevirtual

Definition at line 289 of file PVROnlineSession.h.

◆ IsHost()

bool FPVROnlineSession::IsHost ( const FNamedOnlineSession & Session) const
private

Returns true if the session owner is also the host.

Definition at line 1298 of file PVROnlineSession.cpp.

Here is the caller graph for this function:

◆ IsPlayerInSession()

bool FPVROnlineSession::IsPlayerInSession ( FName SessionName,
const FUniqueNetId & UniqueId )
overridevirtual

Definition at line 586 of file PVROnlineSession.cpp.

◆ IsSessionJoinable()

bool FPVROnlineSession::IsSessionJoinable ( const FNamedOnlineSession & Session) const
private

Determines whether this particular session is joinable.

Returns
true if yes

Definition at line 335 of file PVROnlineSession.cpp.

◆ JoinInternetSession()

uint32 FPVROnlineSession::JoinInternetSession ( int32 PlayerNum,
class FNamedOnlineSession * Session,
const class FOnlineSession * SearchSession )
private

Join a multiplayer session

Parameters
PlayerNumlocal index of the user initiating the request
Sessionnewly allocated session with join information
SearchSessionthe desired session to join
Returns
ERROR_SUCCESS if successful, an error code otherwise

Definition at line 894 of file PVROnlineSession.cpp.

Here is the caller graph for this function:

◆ JoinSession() [1/2]

bool FPVROnlineSession::JoinSession ( const FUniqueNetId & PlayerId,
FName SessionName,
const FOnlineSessionSearchResult & DesiredSession )
overridevirtual

Definition at line 840 of file PVROnlineSession.cpp.

Here is the call graph for this function:

◆ JoinSession() [2/2]

bool FPVROnlineSession::JoinSession ( int32 PlayerNum,
FName SessionName,
const FOnlineSessionSearchResult & DesiredSession )
overridevirtual

Definition at line 776 of file PVROnlineSession.cpp.

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

◆ NeedsToAdvertise() [1/2]

bool FPVROnlineSession::NeedsToAdvertise ( )
private

Checks whether there are any sessions that need to be advertised (over LAN)

Returns
true if there is at least one

Definition at line 302 of file PVROnlineSession.cpp.

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

◆ NeedsToAdvertise() [2/2]

bool FPVROnlineSession::NeedsToAdvertise ( FNamedOnlineSession & Session)
private

Determines whether this particular session should be advertised (over LAN)

Returns
true if yes

Definition at line 320 of file PVROnlineSession.cpp.

Here is the call graph for this function:

◆ OnLANSearchTimeout()

void FPVROnlineSession::OnLANSearchTimeout ( )
private

Delegate triggered when the LAN beacon has finished searching (some time after last received host packet)

Definition at line 1242 of file PVROnlineSession.cpp.

Here is the call graph for this function:

◆ OnSessionListenPortChanged()

void FPVROnlineSession::OnSessionListenPortChanged ( int32 Port)

Definition at line 382 of file PVROnlineSession.cpp.

Here is the caller graph for this function:

◆ OnValidQueryPacketReceived()

void FPVROnlineSession::OnValidQueryPacketReceived ( uint8 * PacketData,
int32 PacketLength,
uint64 ClientNonce )
private

Delegate triggered when the LAN beacon has detected a valid client request has been received

Parameters
PacketDatapacket data sent by the requesting client with header information removed
PacketLengthlength of the packet not including header size
ClientNoncethe nonce returned by the client to return with the server packet

Definition at line 1182 of file PVROnlineSession.cpp.

Here is the caller graph for this function:

◆ OnValidResponsePacketReceived()

void FPVROnlineSession::OnValidResponsePacketReceived ( uint8 * PacketData,
int32 PacketLength )
private

Delegate triggered when the LAN beacon has detected a valid host response to a client request has been received

Parameters
PacketDatapacket data sent by the requesting client with header information removed
PacketLengthlength of the packet not including header size

Definition at line 1213 of file PVROnlineSession.cpp.

◆ PingSearchResults()

bool FPVROnlineSession::PingSearchResults ( const FOnlineSessionSearchResult & SearchResult)
overridevirtual

Definition at line 918 of file PVROnlineSession.cpp.

◆ RegisterLocalPlayer()

void FPVROnlineSession::RegisterLocalPlayer ( const FUniqueNetId & PlayerId,
FName SessionName,
const FOnRegisterLocalPlayerCompleteDelegate & Delegate )
overridevirtual

Definition at line 1278 of file PVROnlineSession.cpp.

◆ RegisterLocalPlayers()

void FPVROnlineSession::RegisterLocalPlayers ( class FNamedOnlineSession * Session)
protected

Registers all local players with the current session

Parameters
Sessionthe session that they are registering in

Definition at line 1015 of file PVROnlineSession.cpp.

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

◆ RegisterPlayer()

bool FPVROnlineSession::RegisterPlayer ( FName SessionName,
const FUniqueNetId & PlayerId,
bool bWasInvited )
overridevirtual

Definition at line 1069 of file PVROnlineSession.cpp.

Here is the call graph for this function:

◆ RegisterPlayers()

bool FPVROnlineSession::RegisterPlayers ( FName SessionName,
const TArray< TSharedRef< const FUniqueNetId > > & Players,
bool bWasInvited = false )
overridevirtual

Definition at line 1081 of file PVROnlineSession.cpp.

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

◆ RegisterVoice()

void FPVROnlineSession::RegisterVoice ( const FUniqueNetId & PlayerId)
protected

Registers and updates voice data for the given player id

Parameters
PlayerIdplayer to register with the voice subsystem

Definition at line 1031 of file PVROnlineSession.cpp.

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

◆ RemoveNamedSession()

virtual void FPVROnlineSession::RemoveNamedSession ( FName SessionName)
inlineoverridevirtual

Definition at line 262 of file PVROnlineSession.h.

Here is the caller graph for this function:

◆ SendSessionInviteToFriend() [1/2]

bool FPVROnlineSession::SendSessionInviteToFriend ( const FUniqueNetId & LocalUserId,
FName SessionName,
const FUniqueNetId & Friend )
overridevirtual

Definition at line 876 of file PVROnlineSession.cpp.

◆ SendSessionInviteToFriend() [2/2]

bool FPVROnlineSession::SendSessionInviteToFriend ( int32 LocalUserNum,
FName SessionName,
const FUniqueNetId & Friend )
overridevirtual

Definition at line 870 of file PVROnlineSession.cpp.

◆ SendSessionInviteToFriends() [1/2]

bool FPVROnlineSession::SendSessionInviteToFriends ( const FUniqueNetId & LocalUserId,
FName SessionName,
const TArray< TSharedRef< const FUniqueNetId > > & Friends )
overridevirtual

Definition at line 888 of file PVROnlineSession.cpp.

◆ SendSessionInviteToFriends() [2/2]

bool FPVROnlineSession::SendSessionInviteToFriends ( int32 LocalUserNum,
FName SessionName,
const TArray< TSharedRef< const FUniqueNetId > > & Friends )
overridevirtual

Definition at line 882 of file PVROnlineSession.cpp.

◆ SetPortFromNetDriver()

void FPVROnlineSession::SetPortFromNetDriver ( const FPVROSubsystem & Subsystem,
const TSharedPtr< FOnlineSessionInfo > & SessionInfo )
staticprivate

Attempt to set the host port in the session info based on the actual port the netdriver is using.

Definition at line 1288 of file PVROnlineSession.cpp.

◆ StartMatchmaking()

bool FPVROnlineSession::StartMatchmaking ( const TArray< TSharedRef< const FUniqueNetId > > & LocalPlayers,
FName SessionName,
const FOnlineSessionSettings & NewSessionSettings,
TSharedRef< FOnlineSessionSearch > & SearchSettings )
overridevirtual

Definition at line 591 of file PVROnlineSession.cpp.

◆ StartSession()

bool FPVROnlineSession::StartSession ( FName SessionName)
overridevirtual

Definition at line 387 of file PVROnlineSession.cpp.

Here is the call graph for this function:

◆ Tick()

void FPVROnlineSession::Tick ( float DeltaTime)
protected

Session tick for various background tasks

Definition at line 1161 of file PVROnlineSession.cpp.

Here is the call graph for this function:

◆ TickLanTasks()

void FPVROnlineSession::TickLanTasks ( float DeltaTime)
private

Ticks any lan beacon background tasks

Parameters
DeltaTimethe time since the last tick

Definition at line 1176 of file PVROnlineSession.cpp.

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

◆ UnregisterLocalPlayer()

void FPVROnlineSession::UnregisterLocalPlayer ( const FUniqueNetId & PlayerId,
FName SessionName,
const FOnUnregisterLocalPlayerCompleteDelegate & Delegate )
overridevirtual

Definition at line 1283 of file PVROnlineSession.cpp.

◆ UnregisterLocalPlayers()

void FPVROnlineSession::UnregisterLocalPlayers ( class FNamedOnlineSession * Session)
protected

Unregisters all local players with the current session

Parameters
Sessionthe session that they are registering in

◆ UnregisterPlayer()

bool FPVROnlineSession::UnregisterPlayer ( FName SessionName,
const FUniqueNetId & PlayerId )
overridevirtual

Definition at line 1115 of file PVROnlineSession.cpp.

Here is the call graph for this function:

◆ UnregisterPlayers()

bool FPVROnlineSession::UnregisterPlayers ( FName SessionName,
const TArray< TSharedRef< const FUniqueNetId > > & Players )
overridevirtual

Definition at line 1127 of file PVROnlineSession.cpp.

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

◆ UnregisterVoice()

void FPVROnlineSession::UnregisterVoice ( const FUniqueNetId & PlayerId)
protected

Unregisters a given player id from the voice subsystem

Parameters
PlayerIdplayer to unregister with the voice subsystem

Definition at line 1051 of file PVROnlineSession.cpp.

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

◆ UpdateLANStatus()

uint32 FPVROnlineSession::UpdateLANStatus ( )
private

Updates the status of LAN session (creates it if needed, shuts down if not)

Returns
ERROR_SUCCESS if everything went successful, an error code otherwise

Definition at line 352 of file PVROnlineSession.cpp.

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

◆ UpdateSession()

bool FPVROnlineSession::UpdateSession ( FName SessionName,
FOnlineSessionSettings & UpdatedSessionSettings,
bool bShouldRefreshOnlineData = true )
overridevirtual

Definition at line 434 of file PVROnlineSession.cpp.

Here is the call graph for this function:

Member Data Documentation

◆ CurrentSessionSearch

TSharedPtr<FOnlineSessionSearch> FPVROnlineSession::CurrentSessionSearch
protected

Definition at line 156 of file PVROnlineSession.h.

◆ GameServerPixoVRId

TSharedPtr<FUniqueNetIdPixoVR> FPVROnlineSession::GameServerPixoVRId
protected

Definition at line 150 of file PVROnlineSession.h.

◆ HostSessionPort

int32 FPVROnlineSession::HostSessionPort

Definition at line 236 of file PVROnlineSession.h.

◆ LANSessionManager

FPVROSession FPVROnlineSession::LANSessionManager
private

Handles advertising sessions over LAN and client searches

Definition at line 41 of file PVROnlineSession.h.

◆ SessionLock

FCriticalSection FPVROnlineSession::SessionLock
mutableprotected

Definition at line 152 of file PVROnlineSession.h.

◆ Sessions

TArray<FNamedOnlineSession> FPVROnlineSession::Sessions
protected

Definition at line 154 of file PVROnlineSession.h.

◆ SessionSearchEndTime

double FPVROnlineSession::SessionSearchEndTime
protected

Definition at line 160 of file PVROnlineSession.h.

◆ SessionSearchStartTime

double FPVROnlineSession::SessionSearchStartTime
protected

Current search start time.

Definition at line 159 of file PVROnlineSession.h.

◆ Subsystem

class FPVROSubsystem* FPVROnlineSession::Subsystem
private

Reference to the main PixoVR subsystem

Definition at line 38 of file PVROnlineSession.h.


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