![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <UdpSocketSender.h>
Inheritance diagram for FUdpSocketSender:Public Member Functions | |
| FUdpSocketSender (FSocket *InSocket, const TCHAR *ThreadDescription) | |
| virtual | ~FUdpSocketSender () |
| uint32 | GetSendRate () const |
| uint32 | GetThroughput () const |
| bool | Send (const TSharedRef< TArray< uint8 >, ESPMode::ThreadSafe > &Data, const FIPv4Endpoint &Recipient) |
| void | SetSendRate (uint32 Rate) |
| void | SetWaitTime (const FTimespan &Timespan) |
| 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 | |
| bool | Update (const FTimespan &SocketWaitTime) |
| virtual void | Tick () override |
Asynchronously sends data to an UDP socket.
Creates and initializes a new socket sender.
| InSocket | The UDP socket to use for sending data. |
| ThreadDescription | The thread description text (for debugging). |
|
inlinevirtual |
Virtual destructor.
|
inline |
Gets the maximum send rate (in bytes per second).
|
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 |
Gets the current throughput (in bytes per second).
|
inline |
Sends data to the specified recipient.
| Data | The data to send. |
| Recipient | The recipient. |
Sets the send rate (in bytes per second).
| Rate | The new send rate (0 = unlimited). |
Sets the maximum time span to wait for work items.
| Timespan | The wait time. |
Implements FSingleThreadRunnable.
Update this socket sender.
| Time | to wait for the socket. |