Navigation
API > API/Plugins > API/Plugins/OnlineSubsystemUtils
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- AActor
- AOnlineBeacon
- AOnlineBeaconHost
References
| Module | OnlineSubsystemUtils |
| Header | /Engine/Plugins/Online/OnlineSubsystemUtils/Source/OnlineSubsystemUtils/Public/OnlineBeaconHost.h |
| Include | #include "OnlineBeaconHost.h" |
Syntax
UCLASS&40;Transient, NotPlaceable, Config&61;Engine&41;
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 | 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 |
Overridden from AActor
| Type | Name | Description | |
|---|---|---|---|
| void | OnNetCleanup
(
UNetConnection* Connection |
Handles cleaning up the associated Actor when killing the connection |
Overridden from FNetworkNotify
| Type | Name | Description | |
|---|---|---|---|
| void | NotifyControlMessage
(
UNetConnection* Connection, |
Handler for messages sent through a remote connection's control channel not required to handle the message, but if it reads any data from Bunch, it MUST read the ENTIRE data stream for that message (i.e. use FNetControlMessage |
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 |
Deprecated Functions
| Type | Name | Description | |
|---|---|---|---|
| void | OnAuthenticationVerificationComplete
(
const FUniqueNetId& PlayerId, |
This version of the OnAuthenticationVerificationComplete is deprecated. Please use the new OnAuthenticationVerificationComplete method instead. | |
| bool | StartVerifyAuthentication
(
const FUniqueNetId& PlayerId, |
This version of the StartVerifyAuthentication is deprecated. Please use the new StartVerifyAuthentication method instead. | |
| bool | StartVerifyAuthentication
(
const FUniqueNetId& PlayerId, |
This version of the StartVerifyAuthentication is deprecated. Please use the new StartVerifyAuthentication method instead. |