![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <UdpSocketReceiver.h>
Inheritance diagram for FUdpSocketReceiver:Public Member Functions | |
| FUdpSocketReceiver (FSocket *InSocket, const FTimespan &InWaitTime, const TCHAR *InThreadName) | |
| virtual | ~FUdpSocketReceiver () |
| void | SetMaxReadBufferSize (uint32 InMaxReadBufferSize) |
| void | SetThreadStackSize (uint32 InTheadStackSize) |
| void | Start () |
| FOnSocketDataReceived & | OnDataReceived () |
| virtual FSingleThreadRunnable * | GetSingleThreadInterface () override |
| virtual bool | Init () override |
| virtual uint32 | Run () override |
| virtual void | Stop () override |
| virtual void | Exit () override |
Public Member Functions inherited from FRunnable | |
| virtual | ~FRunnable () |
Protected Member Functions | |
| void | Update (const FTimespan &SocketWaitTime) |
| virtual void | Tick () override |
Asynchronously receives data from an UDP socket.
|
inline |
Creates and initializes a new socket receiver.
| InSocket | The UDP socket to receive data from. |
| InWaitTime | The amount of time to wait for the socket to be readable. |
| InThreadName | The receiver thread name (for debugging). |
|
inlinevirtual |
Virtual destructor.
|
inlineoverridevirtual |
Gets single thread interface pointer used for ticking this runnable when multi-threading is disabled. If the interface is not implemented, this runnable will not be ticked when FPlatformProcess::SupportsMultithreading() is false.
Reimplemented from FRunnable.
|
inline |
Returns a delegate that is executed when data has been received.
This delegate must be bound before the receiver thread is started with the Start() method. It cannot be unbound while the thread is running.
Set the maximum size allocated to read off of the socket.
Set the desired Thread Stack Size. Only read when Start() is called.
|
inline |
Start the receiver thread.
Implements FSingleThreadRunnable.
Update this socket receiver.