Table of Contents

Delegate SharedDnsResolverCallbackAsync

Namespace
Hi3Helper.Plugin.Core
Assembly
Hi3Helper.Plugin.Core.dll

A delegate to an asynchronous callback which returns an array pointer of DnsARecordResult struct for resolving DNS A/AAAA Record query.

public delegate nint SharedDnsResolverCallbackAsync(char* hostname, int hostnameLength, void** cancelCallback)

Parameters

hostname char*

[In] A hostname to query the A/AAAA record to.

hostnameLength int
A delegate to an asynchronous callback which returns an array pointer of struct for resolving DNS A/AAAA Record query.
cancelCallback void**

[Out] A callback in which invoked, will be cancelling the async operation of the resolver.

Returns

nint

A pointer to ComAsyncResult in which returns the pointer (nint) of the DnsARecordResult struct.