Navigation
API > API/Runtime > API/Runtime/Networking > API/Runtime/Networking/Common
Inheritance Hierarchy
- FRunnable
- FSingleThreadRunnable
- FUdpSocketReceiver
References
Module | Networking |
Header | /Engine/Source/Runtime/Networking/Public/Common/UdpSocketReceiver.h |
Include | #include "Common/UdpSocketReceiver.h" |
Syntax
class FUdpSocketReceiver :
public FRunnable,
private FSingleThreadRunnable
Remarks
Asynchronously receives data from an UDP socket.
Constructors
Type | Name | Description | |
---|---|---|---|
![]() |
FUdpSocketReceiver
(
FSocket* InSocket, |
Creates and initializes a new socket receiver. |
Destructors
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
Virtual destructor. |
Functions
Type | Name | Description | |
---|---|---|---|
![]() |
FOnSocketDataReceived & | Returns a delegate that is executed when data has been received. | |
![]() |
void | SetMaxReadBufferSize
(
uint32 InMaxReadBufferSize |
Set the maximum size allocated to read off of the socket. |
![]() |
void | Start () |
Start the receiver thread. |
![]() |
void | Update this socket receiver. |
Overridden from FRunnable
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
void | Exit () |
Exits the runnable object. |
![]() ![]() |
FSingleThreadRunnable * | Gets single thread interface pointer used for ticking this runnable when multi-threading is disabled. | |
![]() ![]() |
bool | Init () |
Initializes the runnable object. |
![]() ![]() |
uint32 | Run () |
Runs the runnable object. |
![]() ![]() |
void | Stop () |
Stops the runnable object.This is called if a thread is requested to terminate early. |
Overridden from FSingleThreadRunnable
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
void | Tick () |
Tick function. |