![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <IPv4Endpoint.h>
Public Member Functions | |
| FIPv4Endpoint () | |
| FIPv4Endpoint (const FIPv4Address &InAddress, uint16 InPort) | |
| FIPv4Endpoint (const TSharedPtr< FInternetAddr > &InternetAddr) | |
| bool | operator== (const FIPv4Endpoint &Other) const |
| bool | operator!= (const FIPv4Endpoint &Other) const |
| TSharedRef< FInternetAddr > | ToInternetAddr () const |
| TSharedRef< FInternetAddr > | ToInternetAddrIPV4 () const |
| NETWORKING_API FString | ToString () const |
| FText | ToText () const |
Static Public Member Functions | |
| static NETWORKING_API void | Initialize () |
| static NETWORKING_API bool | Parse (const FString &EndpointString, FIPv4Endpoint &OutEndpoint) |
| static NETWORKING_API bool | FromHostAndPort (const FString &HostAndPortString, FIPv4Endpoint &OutEndpoint) |
Public Attributes | |
| FIPv4Address | Address |
| uint16 | Port |
Static Public Attributes | |
| static NETWORKING_API const FIPv4Endpoint | Any |
Friends | |
| FArchive & | operator<< (FArchive &Ar, FIPv4Endpoint &Endpoint) |
| uint32 | GetTypeHash (const FIPv4Endpoint &Endpoint) |
Implements an endpoint for IPv4 networks.
An endpoint consists of an IPv4 address and a port number.
|
inline |
Default constructor.
|
inline |
Creates and initializes a new IPv4 endpoint with the specified NetID and port.
| InAddress | The endpoint's IP address. |
| InPort | The endpoint's port number. |
|
inline |
Creates and initializes a new IPv4 endpoint from a given FInternetAddr object.
Note: this constructor will be removed after the socket subsystem has been refactored.
| InternetAddr | The Internet address. |
|
static |
Resolves a hostname and port to an IPv4 endpoint.
| HostAndPortString | The host and port to resolve. |
| OutEndpoint | Will contain the resolved endpoint. |
|
static |
Initializes the IP endpoint functionality.
|
inline |
Compares this IPv4 address with the given endpoint for inequality.
| Other | The endpoint to compare with. |
|
inline |
Compares this IPv4 endpoint with the given endpoint for equality.
| Other | The endpoint to compare with. |
|
static |
Converts a string to an IPv4 endpoint.
| EndpointString | The string to convert. |
| OutEndpoint | Will contain the parsed endpoint. |
|
inline |
Converts this endpoint to an FInternetAddr object.
Note: this method will be removed after the socket subsystem is refactored.
|
inline |
Converts this endpoint to an FInternetAddr object.
Note: this method will be removed after the socket subsystem is refactored.
| FString FIPv4Endpoint::ToString | ( | ) | const |
|
inline |
|
friend |
Gets the hash for specified IPv4 endpoint.
| Endpoint | The endpoint to get the hash for. |
|
friend |
Serializes the given endpoint from or into the specified archive.
| Ar | The archive to serialize from or into. |
| Endpoint | The endpoint to serialize. |
| FIPv4Address FIPv4Endpoint::Address |
Holds the endpoint's IP address.
|
static |
Defines the wild card endpoint, which is 0.0.0.0:0
| uint16 FIPv4Endpoint::Port |
Holds the endpoint's port number.