qBool SessionHostIsOrphan() const;
None.
Value | Description |
---|---|
true |
Orphaned. |
false |
Not orphaned. |
Determines whether the local host is an orphaned session host.
Determines whether the local host is an orphaned session host. The P2P session can still continue even after the local host becomes orphaned, but other clients cannot join that P2P session. To avoid that problem, you need to exit the current matchmaking session and register a new matchmaking session. To do this, destroy the existing instance of HostMigrationCallback
, create a new instance of it, and then register a new matchmaking session ID. If the SessionHostIsOrphan
function has returned true
, you cannot reuse the HostMigrationCallback instance.
The session host is determined to have been orphaned if all of the following conditions are met.
StationLeavingOnFault
) ChangeMasterStation
, be sure to verify that it has not transitioned to an orphaned state. This function may be used for polling every frame.
CONFIDENTIAL