FLanBeacon

Class responsible for sending/receiving UDP broadcasts for LAN match discovery

Windows
MacOS
Linux

References

Module

OnlineSubsystem

Header

/Engine/Plugins/Online/OnlineSubsystem/Source/Public/LANBeacon.h

Include

#include "LANBeacon.h"

Syntax

class FLanBeacon

Remarks

Class responsible for sending/receiving UDP broadcasts for LAN match discovery

Constructors

Name Description

Public function

FLanBeacon()

Sets the broadcast address for this object

Destructors

Name Description

Public function

~FLanBeacon()

Frees the broadcast socket

Functions

Name Description

Public function

bool

 

BroadcastPacket

(
    uint8* Packet,
    int32 Length
)

Uses the cached broadcast address to send packet to a subnet

Public function

bool

 

Init

(
    int32 Port
)

Initializes the socket

Public function Const

bool

 

IsListenSocketValid()

Return true if there is a valid ListenSocket

Public function

int32

 

ReceivePacket

(
    uint8* PacketData,
    int32 BufferSize
)

Called to poll the socket for pending data.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss