Navigation
API > API/Runtime > API/Runtime/Sockets > API/Runtime/Sockets/ISocketSubsystem > API/Runtime/Sockets/ISocketSubsystem/GetHostByName
Deprecated * Please use GetAddressInfo to query hostnames
References
| Module | Sockets |
| Header | /Engine/Source/Runtime/Sockets/Public/SocketSubsystem.h |
| Include | #include "SocketSubsystem.h" |
virtual ESocketErrors GetHostByName
&40;
const ANSICHAR &42; HostName,
FInternetAddr & OutAddr
&41;
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
| Name | Description |
|---|---|
| HostName | the name of the host to look up |
| Addr | the address to copy the IP address to |