Navigation
API > API/Runtime > API/Runtime/Sockets > API/Runtime/Sockets/ISocketSubsystem
Overloads
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual FAddressInfoResult GetAddressInfo
(
const TCHAR* HostName, |
Gets the address information of the given hostname and outputs it into an array of resolvable addresses. | SocketSubsystem.h | |
FAddressInfoResult GetAddressInfo
(
const TCHAR* HostName, |
Gets the address information of the given hostname and outputs it into an array of resolvable addresses. | SocketSubsystem.h |
GetAddressInfo(const TCHAR , const TCHAR , EAddressInfoFlags, ESocketProtocolFamily, ESocketType)
Description
Gets the address information of the given hostname and outputs it into an array of resolvable addresses. It is up to the caller to determine which one is valid for their environment.
| Name | GetAddressInfo |
| Type | function |
| Header File | /Engine/Source/Runtime/Sockets/Public/SocketSubsystem.h |
| Include Path | #include "SocketSubsystem.h" |
virtual FAddressInfoResult GetAddressInfo
(
const TCHAR * HostName,
const TCHAR * ServiceName,
EAddressInfoFlags QueryFlags,
ESocketProtocolFamily ProtocolType,
ESocketType SocketType
)
the results structure containing the array of address results to this query
Parameters
| Name | Remarks |
|---|---|
| HostName | string version of the queryable hostname or ip address |
| ServiceName | string version of a service name ("http") or a port number ("80") |
| QueryFlags | What flags are used in making the getaddrinfo call. Several flags can be used at once by bitwise OR-ing the flags together. Platforms are required to translate this value into a the correct flag representation. |
| ProtocolType | Used to limit results from the call. Specifying None will search all valid protocols. Callers will find they rarely have to specify this flag. |
| SocketType | What socket type should the results be formatted for. This typically does not change any formatting results and can be safely left to the default value. |
GetAddressInfo(const TCHAR , const TCHAR , EAddressInfoFlags, const FName, ESocketType)
Description
Gets the address information of the given hostname and outputs it into an array of resolvable addresses. It is up to the caller to determine which one is valid for their environment.
This function allows for specifying FNames for the protocol type, allowing for support of other platform protocols
| Name | GetAddressInfo |
| Type | function |
| Header File | /Engine/Source/Runtime/Sockets/Public/SocketSubsystem.h |
| Include Path | #include "SocketSubsystem.h" |
FAddressInfoResult GetAddressInfo
(
const TCHAR * HostName,
const TCHAR * ServiceName,
EAddressInfoFlags QueryFlags,
const FName ProtocolTypeName,
ESocketType SocketType
)
the results structure containing the array of address results to this query
Parameters
| Name | Remarks |
|---|---|
| HostName | string version of the queryable hostname or ip address |
| ServiceName | string version of a service name ("http") or a port number ("80") |
| QueryFlags | What flags are used in making the getaddrinfo call. Several flags can be used at once by bitwise OR-ing the flags together. Platforms are required to translate this value into a the correct flag representation. |
| ProtocolTypeName | Used to limit results from the call. Specifying None will search all valid protocols. Callers will find they rarely have to specify this flag. |
| SocketType | What socket type should the results be formatted for. This typically does not change any formatting results and can be safely left to the default value. |