FIPv4Endpoint::FromHostAndPort

Resolves a hostname and port to an IPv4 endpoint.

Choose your operating system:

Windows

macOS

Linux

References

Module

Networking

Header

/Engine/Source/Runtime/Networking/Public/Interfaces/IPv4/IPv4Endpoint.h

Include

#include "Interfaces/IPv4/IPv4Endpoint.h"

Source

/Engine/Source/Runtime/Networking/Private/IPv4/IPv4Endpoint.cpp

Syntax

static bool FromHostAndPort
(
    const FString & HostAndPortString,
    FIPv4Endpoint & OutEndpoint
)

Remarks

Resolves a hostname and port to an IPv4 endpoint.

Returns

true if the host and port were parsed and resolved successfully, false otherwise.

Parameters

Parameter

Description

HostAndPortString

The host and port to resolve.

OutEndpoint

Will contain the resolved endpoint.