Navigation
API > API/Plugins > API/Plugins/OnlineSubsystemUtils
Inheritance Hierarchy
- AActor
- FNetworkNotify
- AOnlineBeacon
- AOnlineBeaconHost
References
| Module | OnlineSubsystemUtils |
| Header | /Engine/Plugins/Online/OnlineSubsystemUtils/Source/OnlineSubsystemUtils/Public/OnlineBeaconHost.h |
| Include | #include "OnlineBeaconHost.h" |
Syntax
UCLASS (Transient, NotPlaceable, Config=Engine)
class AOnlineBeaconHost : public AOnlineBeacon
Remarks
Main actor that listens for side channel communication from another Unreal Engine application
The AOnlineBeaconHost listens for connections to route to a registered AOnlineBeaconHostObject The AOnlineBeaconHostObject is responsible for spawning the server version of the AOnlineBeaconClient The AOnlineBeaconHost pairs the two client actors, verifies the validity of the exchange, and accepts/continues the connection
Variables
| Type | Name | Description | |
|---|---|---|---|
| bool | bAuthRequired | Set this to true if you require clients to negotiate auth prior to joining the beacon | |
| bool | bReuseAddressAndPort | Whether to configure the listening socket to allow reuse of the address and port. | |
| int32 | ListenPort | Configured listen port for this beacon host | |
| uint32 | MaxAuthTokenSize |
Constructors
| Type | Name | Description | |
|---|---|---|---|
AOnlineBeaconHost
(
const FObjectInitializer& ObjectInitializer |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | DisconnectClient
(
AOnlineBeaconClient* ClientActor |
Disconnect a given client from the host | |
| AOnlineBeaconClient * | GetClientActor
(
UNetConnection* Connection |
Get a client beacon actor for a given connection | |
| FString | GetDebugName
(
UNetConnection* Connection |
||
| AOnlineBeaconHostObject * | Get the host responsible for a given beacon type | ||
| int32 | Get the listen port for this beacon | ||
| bool | InitHost () |
Initialize the host beacon on a specified port Creates the net driver and begins listening for connections | |
| void | OnNetCleanup
(
UNetConnection* Connection |
||
| void | RegisterHost
(
AOnlineBeaconHostObject* NewHostObject |
Register a beacon host and its client actor factory | |
| void | RemoveClientActor
(
AOnlineBeaconClient* ClientActor |
Remove a client beacon actor from the list of active connections | |
| bool | StartVerifyAuthentication
(
const FUniqueNetId& PlayerId, |
Start verifying an authentication token for a connection. | |
| void | UnregisterHost
(
const FString& BeaconType |
Unregister a beacon host, making future connections of a given type unresponsive | |
| bool | VerifyJoinForBeaconType
(
const FUniqueNetId& PlayerId, |
Verify user authentication once the beacon type is known. |
Overridden from AOnlineBeacon
| Type | Name | Description | |
|---|---|---|---|
| void | HandleNetworkFailure
(
UWorld* World, |
Notification of network error messages, allows a beacon to handle the failure | |
| void | NotifyControlMessage
(
UNetConnection* Connection, |
Typedefs
| Name | Description |
|---|---|
| FNetCloseResult | |
| FOnAuthenticationVerificationCompleteDelegate | Delegate executed when user authentication has completed. |
| FOnBeaconConnected | Delegate to route a connection event to the appropriate beacon host, by type |
| FOnBeaconSpawned | Delegate to route a connection attempt to the appropriate beacon host, by type |