Implements a fluent builder for TCP sockets. 更多...
#include <TcpSocketBuilder.h>
Public 成员函数 | |
| FTcpSocketBuilder | AsBlocking () |
| Sets socket operations to be blocking. 更多... | |
| FTcpSocketBuilder | AsNonBlocking () |
| 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 (int32 Port) |
| Sets the local port to bind the socket to. 更多... | |
| FSocket * | Build () const |
| Builds the socket as configured. 更多... | |
| FTcpSocketBuilder (const FString &InDescription) | |
| Creates and initializes a new instance. 更多... | |
| FTcpSocketBuilder | Lingering (int32 Timeout) |
| Sets how long the socket will linger after closing. 更多... | |
| FTcpSocketBuilder | Listening (int32 MaxBacklog) |
| Sets the socket into a listening state for incoming connections. 更多... | |
| operator FSocket * () const | |
| Implicit conversion operator that builds the socket as configured. 更多... | |
| 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). 更多... | |
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. |