Navigation
API > API/Runtime > API/Runtime/Networking > API/Runtime/Networking/Interfaces > API/Runtime/Networking/Interfaces/IPv4
References
| Module | Networking |
| Header | /Engine/Source/Runtime/Networking/Public/Interfaces/IPv4/IPv4Endpoint.h |
| Include | #include "Interfaces/IPv4/IPv4Endpoint.h" |
Syntax
struct FIPv4Endpoint
Remarks
Implements an endpoint for IPv4 networks.
An endpoint consists of an IPv4 address and a port number.
Variables
| Type | Name | Description | |
|---|---|---|---|
| FIPv4Address | Address | Holds the endpoint's IP address. | |
| uint16 | Port | Holds the endpoint's port number. |
Constructors
| Type | Name | Description | |
|---|---|---|---|
| Default constructor. | |||
FIPv4Endpoint
(
const TSharedPtr< FInternetAddr >& InternetAddr |
Creates and initializes a new IPv4 endpoint from a given FInternetAddr object. | ||
FIPv4Endpoint
(
const FIPv4Address& InAddress, |
Creates and initializes a new IPv4 endpoint with the specified NetID and port. |
Functions
| Type | Name | Description | |
|---|---|---|---|
| bool | FromHostAndPort
(
const FString& HostAndPortString, |
Resolves a hostname and port to an IPv4 endpoint. | |
| void | Initialize () |
Initializes the IP endpoint functionality. | |
| bool | Parse
(
const FString& EndpointString, |
Converts a string to an IPv4 endpoint. | |
| TSharedRef< FInternetAddr > | Converts this endpoint to an FInternetAddr object. | ||
| TSharedRef< FInternetAddr > | Converts this endpoint to an FInternetAddr object. | ||
| FString | ToString () |
Gets a string representation for this endpoint. | |
| FText | ToText () |
Gets the display text representation. |
Operators
| Type | Name | Description | |
|---|---|---|---|
| bool | operator!=
(
const FIPv4Endpoint& Other |
Compares this IPv4 address with the given endpoint for inequality. | |
| bool | operator==
(
const FIPv4Endpoint& Other |
Compares this IPv4 endpoint with the given endpoint for equality. |
Constants
| Name | Description |
|---|---|
| Any | Defines the wild card endpoint, which is 0.0.0.0:0 |
| CachedSocketSubsystem | ISocketSubsystem::Get() is not thread-safe, so we cache it here. |