Navigation
API > API/Plugins > API/Plugins/OnlineBase > API/Plugins/OnlineBase/Online
References
| Module | OnlineBase |
| Header | /Engine/Plugins/Online/OnlineBase/Source/Public/Online/LANBeacon.h |
| Include | #include "Online/LANBeacon.h" |
Syntax
class FLANSession
Remarks
Encapsulate functionality related to LAN broadcast data
Variables
| Type | Name | Description | |
|---|---|---|---|
| TSet< FGuid > | CachedResponseGuids | Cached guids already received during current search | |
| int32 | LanAnnouncePort | Port to listen on for LAN queries/responses | |
| FLanBeacon * | LanBeacon | LAN beacon for packet broadcast | |
| FGuid | LanBeaconGuid | Unique identifier for this hosting/searching LAN session | |
| ELanBeaconState::Type | LanBeaconState | State of the LAN beacon | |
| int32 | LanGameUniqueId | Unique id to keep UE games from seeing each others' LAN packets | |
| uint64 | LanNonce | Used by a client to uniquely identify itself during LAN match discovery | |
| int32 | LanPacketPlatformMask | Mask containing which platforms can cross communicate | |
| float | LanQueryRetryTime | The amount of time to wait before resending a LAN query request | |
| float | LanQueryRetryTimeLeft | The amount of time before the LAN query retry | |
| float | LanQueryTimeLeft | The amount of time before the LAN query is considered done | |
| float | LanQueryTimeout | The amount of time to wait before timing out a LAN query request | |
| FOnSearchingTimeout | OnSearchTimeoutDelegates | ||
| FOnValidQueryPacket | OnValidQueryPacketDelegates | ||
| FOnValidResponsePacket | OnValidResponsePacketDelegates | ||
| TArray< uint8 > | RetryData | Cached search packet data for retries |
Constructors
| Type | Name | Description | |
|---|---|---|---|
FLANSession () |
Destructors
| Type | Name | Description | |
|---|---|---|---|
~FLANSession () |
Functions
| Type | Name | Description | |
|---|---|---|---|
| bool | BroadcastPacket
(
uint8* Packet, |
Uses the cached broadcast address to send packet to a subnet | |
| void | CreateClientQueryPacket
(
FNboSerializeToBuffer& Packet, |
||
| void | CreateHostResponsePacket
(
FNboSerializeToBuffer& Packet, |
Create packet of MAX size | |
| ELanBeaconState::Type | |||
| bool | Host
(
FOnValidQueryPacketDelegate& QueryDelegate |
Creates the LAN beacon for queries/advertising servers | |
| bool | IsValidLanQueryPacket
(
const uint8* Packet, |
Determines if the packet header is valid or notDetermines if the packet header is valid or not | |
| bool | IsValidLanResponsePacket
(
const uint8* Packet, |
Determines if the packet header is valid or notDetermines if the packet header is valid or not | |
| bool | Search
(
FNboSerializeToBuffer& Packet, |
Creates the LAN beacon for queries/advertising servers | |
| void | Stops the LAN beacon from accepting broadcasts | ||
| void | Tick
(
float DeltaTime |