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.

Choose your operating system:

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