Navigation
API > API/Plugins > API/Plugins/OnlineSubsystemUtils
Inheritance Hierarchy
- AActor
- FNetworkNotify
- AOnlineBeacon
- AOnlineBeaconClient
- ALobbyBeaconClient
- AMultiServerBeaconClient
- APartyBeaconClient
- AQosBeaconClient
- ASpectatorBeaconClient
- ATestBeaconClient
- AOnlineBeaconHost
References
| Module | OnlineSubsystemUtils |
| Header | /Engine/Plugins/Online/OnlineSubsystemUtils/Source/OnlineSubsystemUtils/Public/OnlineBeacon.h |
| Include | #include "OnlineBeacon.h" |
Syntax
UCLASS (MinimalAPI, Transient, Config=Engine, NotPlaceable)
class AOnlineBeacon :
public AActor,
public FNetworkNotify
Remarks
Base class for beacon communication (Unreal Networking, but outside normal gameplay traffic)
Variables
| Type | Name | Description | |
|---|---|---|---|
| float | BeaconConnectionInitialTimeout | Time beacon will wait to establish a connection with the beacon host | |
| float | BeaconConnectionTimeout | Time beacon will wait for packets after establishing a connection before giving up | |
| EBeaconState::Type | BeaconState | State of beacon | |
| FDelegateHandle | HandleNetworkFailureDelegateHandle | Handle to the registered HandleNetworkFailure delegate | |
| TObjectPtr< UNetDriver > | NetDriver | Net driver routing network traffic | |
| FName | NetDriverDefinitionName | Name of definition to use when creating the net driver |
Constructors
| Type | Name | Description | |
|---|---|---|---|
AOnlineBeacon
(
const FObjectInitializer& ObjectInitializer |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | |||
| void | Beacon cleanup and net driver destruction | ||
| void | EndPlay
(
const EEndPlayReason::Type EndPlayReason |
||
| EBeaconState::Type | Get the current state of the beacon | ||
| UNetConnection * | |||
| const AActor * | GetNetOwner () |
||
| void | HandleNetworkFailure
(
UWorld* World, |
Notification of network error messages, allows a beacon to handle the failure | |
| bool | HasNetOwner () |
Overridden to return that player controllers are capable of RPCs | |
| bool | InitBase () |
Common initialization for all beacon types | |
| bool | |||
| bool | IsNetRelevantFor
(
const AActor* RealViewer, |
||
| bool | IsRelevancyOwnerFor
(
const AActor* ReplicatedActor, |
||
| void | NotifyAcceptedConnection
(
UNetConnection* Connection |
||
| bool | NotifyAcceptingChannel
(
UChannel* Channel |
||
| EAcceptConnection::Type | |||
| void | NotifyControlMessage
(
UNetConnection* Connection, |
||
| void | OnActorChannelOpen
(
FInBunch& InBunch, |
||
| void | OnFailure () |
Notification that failure needs to be handled | |
| void | PauseBeaconRequests
(
bool bPause |
Set Beacon state@bPause should the beacon stop accepting requests |