Navigation
API > API/Plugins > API/Plugins/OnlineBase
Class responsible for sending/receiving UDP broadcasts for LAN match discovery
| Name | FLanBeacon |
| Type | class |
| Header File | /Engine/Plugins/Online/OnlineBase/Source/Public/Online/LANBeacon.h |
| Include Path | #include "Online/LANBeacon.h" |
Syntax
class FLanBeacon
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FLanBeacon() |
Sets the broadcast address for this object | Online/LANBeacon.h |
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
~FLanBeacon() |
Frees the broadcast socket | Online/LANBeacon.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| BroadcastAddr | TSharedPtr< class FInternetAddr > | Builds the broadcast address and caches it | Online/LANBeacon.h | |
| ListenAddr | TSharedPtr< class FInternetAddr > | The address in bound requests come in on | Online/LANBeacon.h | |
| ListenSocket | FSocket * | The socket to listen for requests on | Online/LANBeacon.h | |
| SockAddr | TSharedRef< class FInternetAddr > | Temporary address when receiving packets | Online/LANBeacon.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
bool BroadcastPacket
(
uint8* Packet, |
Uses the cached broadcast address to send packet to a subnet | Online/LANBeacon.h | |
bool Init
(
int32 Port |
Initializes the socket | Online/LANBeacon.h | |
bool IsListenSocketValid() |
Return true if there is a valid ListenSocket | Online/LANBeacon.h | |
int32 ReceivePacket
(
uint8* PacketData, |
Called to poll the socket for pending data. | Online/LANBeacon.h |