FIPv4Endpoint

Implements an endpoint for IPv4 networks.

Windows
MacOS
Linux

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

Name Description

Public variable

FIPv4Address

 

Address

Holds the endpoint's IP address.

Public variable

uint16

 

Port

Holds the endpoint's port number.

Constructors

Name Description

Public function

FIPv4Endpoint()

Default constructor.

Public function

FIPv4Endpoint

(
    const TSharedPtr< FInternetAddr >&...
)

Creates and initializes a new IPv4 endpoint from a given FInternetAddr object.

Public function

FIPv4Endpoint

(
    const FIPv4Address& InAddress,
    uint16 InPort
)

Creates and initializes a new IPv4 endpoint with the specified NetID and port.

Functions

Name Description

Public function Static

bool

 

FromHostAndPort

(
    const FString& HostAndPortString,
    FIPv4Endpoint& OutEndpoint
)

Resolves a hostname and port to an IPv4 endpoint.

Public function Static

void

 

Initialize()

Initializes the IP endpoint functionality.

Public function Static

bool

 

Parse

(
    const FString& EndpointString,
    FIPv4Endpoint& OutEndpoint
)

Converts a string to an IPv4 endpoint.

Public function Const

TSharedRef< ...

 

ToInternetAddr()

Converts this endpoint to an FInternetAddr object.

Public function Const

TSharedRef< ...

 

ToInternetAddrIPV4()

Converts this endpoint to an FInternetAddr object.

Public function Const

FString

 

ToString()

Gets a string representation for this endpoint.

Public function Const

FText

 

ToText()

Gets the display text representation.

Operators

Name Description

Public function Const

bool

 

operator!=

(
    const FIPv4Endpoint& Other
)

Compares this IPv4 address with the given endpoint for inequality.

Public function Const

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.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss