Navigation
API > API/Runtime > API/Runtime/Sockets
Class for creating a background thread to resolve a host.
| Name | FResolveInfoAsync |
| Type | class |
| Header File | /Engine/Source/Runtime/Sockets/Public/IPAddressAsyncResolve.h |
| Include Path | #include "IPAddressAsyncResolve.h" |
Syntax
class FResolveInfoAsync : public FResolveInfo
Inheritance Hierarchy
- FResolveInfo → FResolveInfoAsync
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FResolveInfoAsync
(
const ANSICHAR* InHostName |
Copies the host name for async resolution | IPAddressAsyncResolve.h |
Classes
| Name | Remarks |
|---|---|
| FResolveInfoAsyncWorker | A simple wrapper task that calls back to FResolveInfoAsync to do the actual work |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| Addr | TSharedPtr< FInternetAddr > | Variables. | IPAddressAsyncResolve.h | |
| AsyncTask | FAsyncTask< FResolveInfoAsyncWorker > | Async task for async resolve | IPAddressAsyncResolve.h | |
| bShouldAbandon | volatile int32 | Tells the worker thread whether it should abandon it's work or not | IPAddressAsyncResolve.h | |
| ErrorCode | int32 | Error code returned by GetHostByName. | IPAddressAsyncResolve.h | |
| HostName | ANSICHAR | IPAddressAsyncResolve.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void DoWork() |
Resolves the specified host name | IPAddressAsyncResolve.h | |
void StartAsyncTask() |
Start the async work and perform it synchronously if no thread pool is available | IPAddressAsyncResolve.h |
Overridden from FResolveInfo
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual int32 GetErrorCode() |
The error that occurred when trying to resolve | IPAddressAsyncResolve.h | |
virtual const FInternetAddr & GetResolvedAddress() |
Returns a copy of the resolved address | IPAddressAsyncResolve.h | |
virtual bool IsComplete() |
Whether the async process has completed or not | IPAddressAsyncResolve.h |