ISocketSubsystem::GetHostByNameFromCache

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

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

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