![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <TcpSocketBuilder.h>
Public Member Functions | |
| FTcpSocketBuilder (const FString &InDescription) | |
| FTcpSocketBuilder | AsBlocking () |
| FTcpSocketBuilder | AsNonBlocking () |
| FTcpSocketBuilder | AsReusable () |
| FTcpSocketBuilder | AsReusable (bool bInReusable) |
| FTcpSocketBuilder | BoundToAddress (const FIPv4Address &Address) |
| FTcpSocketBuilder | BoundToEndpoint (const FIPv4Endpoint &Endpoint) |
| FTcpSocketBuilder | BoundToPort (uint16 Port) |
| FTcpSocketBuilder | Lingering (int32 Timeout) |
| FTcpSocketBuilder | Listening (int32 MaxBacklog) |
| FTcpSocketBuilder | WithReceiveBufferSize (int32 SizeInBytes) |
| FTcpSocketBuilder | WithSendBufferSize (int32 SizeInBytes) |
| operator FSocket * () const | |
| FSocket * | Build () const |
Implements a fluent builder for TCP 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 re-usability of the bound address by other sockets.
| bInReusable | Whether to enable or disable re-usability of the bound address. |
|
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 |
Sets how long the socket will linger after closing.
| Timeout | The amount of time to linger before closing. |
|
inline |
Sets the socket into a listening state for incoming connections.
| MaxBacklog | The number of connections to queue before refusing them. |
|
inline |
Implicit conversion operator that builds the socket as configured.
|
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. |