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