Navigation
API > API/Runtime > API/Runtime/Networking > API/Runtime/Networking/Common
Inheritance Hierarchy
- FRunnable
- FSingleThreadRunnable
- FUdpSocketSender
References
| Module | Networking |
| Header | /Engine/Source/Runtime/Networking/Public/Common/UdpSocketSender.h |
| Include | #include "Common/UdpSocketSender.h" |
Syntax
class FUdpSocketSender :
public FRunnable ,
private FSingleThreadRunnable
Remarks
Asynchronously sends data to an UDP socket.
Constructors
| Type | Name | Description | |
|---|---|---|---|
FUdpSocketSender
(
FSocket* InSocket, |
Creates and initializes a new socket sender. |
Destructors
| Type | Name | Description | |
|---|---|---|---|
| Virtual destructor. |
Functions
| Type | Name | Description | |
|---|---|---|---|
| uint32 | GetSendRate () |
Gets the maximum send rate (in bytes per second). | |
| uint32 | Gets the current throughput (in bytes per second). | ||
| bool | Send
(
const TSharedRef< TArray< uint8 >, ESPMode::ThreadSafe >& Data, |
Sends data to the specified recipient. | |
| void | SetSendRate
(
uint32 Rate |
Sets the send rate (in bytes per second). | |
| void | SetWaitTime
(
const FTimespan& Timespan |
Sets the maximum time span to wait for work items. | |
| bool | Update this socket sender. |
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. |