ISocketSubsystem::GetHostByName

Does a DNS look up of a host name This code assumes a lot, and as such, it's not guaranteed that the results provided by it are correct.

Windows
MacOS
Linux

Deprecated

  • Please use GetAddressInfo to query hostnames

References

Module

Sockets

Header

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

Include

#include "SocketSubsystem.h"

Syntax

virtual ESocketErrors GetHostByName
(
    const ANSICHAR * HostName,
    FInternetAddr & OutAddr
)

Remarks

Does a DNS look up of a host name This code assumes a lot, and as such, it's not guaranteed that the results provided by it are correct.

Parameters

Parameter

Description

HostName

the name of the host to look up

Addr

the address to copy the IP address 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