![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <UdpSocketBuilder.h>
Public Member Functions | |
| FUdpSocketBuilder (const FString &InDescription) | |
| FUdpSocketBuilder & | AsBlocking () |
| FUdpSocketBuilder & | AsNonBlocking () |
| FUdpSocketBuilder & | AsReusable () |
| FUdpSocketBuilder & | BoundToAddress (const FIPv4Address &Address) |
| FUdpSocketBuilder & | BoundToEndpoint (const FIPv4Endpoint &Endpoint) |
| FUdpSocketBuilder & | BoundToPort (uint16 Port) |
| FUdpSocketBuilder & | JoinedToGroup (const FIPv4Address &GroupAddress) |
| FUdpSocketBuilder & | JoinedToGroup (const FIPv4Address &GroupAddress, const FIPv4Address &InterfaceAddress) |
| FUdpSocketBuilder & | WithBroadcast () |
| FUdpSocketBuilder & | WithMulticastLoopback () |
| FUdpSocketBuilder & | WithMulticastTtl (uint8 TimeToLive) |
| FUdpSocketBuilder & | WithMulticastInterface (const FIPv4Address &InterfaceAddress) |
| FUdpSocketBuilder & | WithReceiveBufferSize (int32 SizeInBytes) |
| FUdpSocketBuilder & | WithSendBufferSize (int32 SizeInBytes) |
| operator FSocket * () const | |
| FSocket * | Build () const |
Implements a fluent builder for UDP sockets.
|
inline |
Creates and initializes a new instance.
| InDescription | Debug description for the socket. |
|
inline |
Sets socket operations to be blocking.
|
inline |
Sets socket operations to be non-blocking.
|
inline |
Makes the bound address reusable by other sockets.
|
inline |
Sets the local address to bind the socket to.
Unless specified in a subsequent call to BoundToPort(), a random port number will be assigned by the underlying provider.
| Address | The IP address to bind the socket to. |
|
inline |
Sets the local endpoint to bind the socket to.
| Endpoint | The IP endpoint to bind the socket to. |
|
inline |
Sets the local port to bind the socket to.
Unless specified in a subsequent call to BoundToAddress(), the local address will be determined automatically by the underlying provider.
| Port | The local port number to bind the socket to. |
|
inline |
Builds the socket as configured.
|
inline |
Joins the socket to the specified multicast group.
| GroupAddress | The IP address of the multicast group to join. |
|
inline |
Joins the socket to the specified multicast group.
| GroupAddress | The IP address of the multicast group to join. |
| InterfaceAddress | The IP address of the interface to join the multicast group on. |
|
inline |
Implicit conversion operator that builds the socket as configured.
|
inline |
Enables broadcasting.
|
inline |
Sets the multicast outgoing interface.
| InterfaceAddress | The interface to use to send multicast datagrams. |
|
inline |
Enables multicast loopback.
| AllowLoopback | Whether to allow multicast loopback. |
| TimeToLive | The time to live. |
|
inline |
Sets the multicast time-to-live.
| TimeToLive | The time to live. |
|
inline |
Specifies the desired size of the receive buffer in bytes (0 = default).
The socket creation will not fail if the desired size cannot be set or if the actual size is less than the desired size.
| SizeInBytes | The size of the buffer. |
|
inline |
Specifies the desired size of the send buffer in bytes (0 = default).
The socket creation will not fail if the desired size cannot be set or if the actual size is less than the desired size.
| SizeInBytes | The size of the buffer. |