Navigation
API > API/Runtime > API/Runtime/Networking > API/Runtime/Networking/Common
References
| Module | Networking |
| Header | /Engine/Source/Runtime/Networking/Public/Common/TcpSocketBuilder.h |
| Include | #include "Common/TcpSocketBuilder.h" |
Syntax
class FTcpSocketBuilder
Remarks
Implements a fluent builder for TCP sockets.
Constructors
| Type | Name | Description | |
|---|---|---|---|
FTcpSocketBuilder
(
const FString& InDescription |
Creates and initializes a new instance. |
Functions
| Type | Name | Description | |
|---|---|---|---|
| FTcpSocketBuilder | AsBlocking () |
Sets socket operations to be blocking. | |
| FTcpSocketBuilder | Sets socket operations to be non-blocking. | ||
| FTcpSocketBuilder | AsReusable () |
Makes the bound address reusable by other sockets. | |
| FTcpSocketBuilder | AsReusable
(
bool bInReusable |
Sets re-usability of the bound address by other sockets. | |
| FTcpSocketBuilder | BoundToAddress
(
const FIPv4Address& Address |
Sets the local address to bind the socket to. | |
| FTcpSocketBuilder | BoundToEndpoint
(
const FIPv4Endpoint& Endpoint |
Sets the local endpoint to bind the socket to. | |
| FTcpSocketBuilder | BoundToPort
(
uint16 Port |
Sets the local port to bind the socket to. | |
| FSocket * | Build () |
Builds the socket as configured. | |
| FTcpSocketBuilder | Sets how long the socket will linger after closing. | ||
| FTcpSocketBuilder | Sets the socket into a listening state for incoming connections. | ||
| FTcpSocketBuilder | WithReceiveBufferSize
(
int32 SizeInBytes |
Specifies the desired size of the receive buffer in bytes (0 = default). | |
| FTcpSocketBuilder | WithSendBufferSize
(
int32 SizeInBytes |
Specifies the desired size of the send buffer in bytes (0 = default). |
Operators
| Type | Name | Description | |
|---|---|---|---|
| Implicit conversion operator that builds the socket as configured. |