ISocketSubsystem::GetHostByNameFromCache

Checks the host name cache for an existing entry (faster than resolving again)

Choose your operating system:

Windows

macOS

Linux

References

Module

Sockets

Header

/Engine/Source/Runtime/Sockets/Public/SocketSubsystem.h

Include

#include "SocketSubsystem.h"

Source

/Engine/Source/Runtime/Sockets/Private/SocketSubsystem.cpp

Syntax

bool GetHostByNameFromCache
(
    const ANSICHAR * HostName,
    TSharedPtr< class FInternetAddr > & Addr
)

Remarks

Checks the host name cache for an existing entry (faster than resolving again)

Returns

true if the host was found, false otherwise

Parameters

Parameter

Description

HostName

the host name to search for

Addr

the out param that the IP will be copied to