Navigation
API > API/Plugins > API/Plugins/OnlineBase > API/Plugins/OnlineBase/FLanBeacon
Description
Called to poll the socket for pending data. Any data received is placed in the specified packet buffer
Called to poll the socket for pending data. Any data received is placed in the specified packet buffer
| Name | ReceivePacket |
| Type | function |
| Header File | /Engine/Plugins/Online/OnlineBase/Source/Public/Online/LANBeacon.h |
| Include Path | #include "Online/LANBeacon.h" |
| Source | /Engine/Plugins/Online/OnlineBase/Source/Private/Online/LANBeacon.cpp |
int32 ReceivePacket
(
uint8 * PacketData,
int32 BufferSize
)
the number of bytes read (<= 0 if none or an error)
Parameters
| Name | Remarks |
|---|---|
| PacketData | the buffer to get the socket's packet data |
| BufferSize | the size of the packet buffer |
| PacketData | the buffer to get the socket's packet data |
| BufferSize | the size of the packet buffer |