FIPv4Endpoint::FromHostAndPort

Resolves a hostname and port to an IPv4 endpoint.

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.

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