Table of Contents

Delegate SharedDnsResolverCallback

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

A delegate to a callback which returns a list of IP addresses resolved from the hostname.

public delegate void SharedDnsResolverCallback(char* hostname, char* ipResolvedWriteBuffer, int ipResolvedWriteBufferLength, int* ipResolvedWriteCount)

Parameters

hostname char*

[In] A hostname to resolve to.

ipResolvedWriteBuffer char*

[Ref] A pointer to the buffer in which the main application will write the UTF-16 unsigned string (with null terminator) to.

ipResolvedWriteBufferLength int

[In] The length of the buffer that the main application able to write.

ipResolvedWriteCount int*

[Out] How many IP address strings (with null terminator) are written into the buffer (ipResolvedWriteBuffer).

Remarks

DO NOT FREE THE POINTER GIVEN BY THIS DELEGATE TO AVOID ExecutionEngineException! The pointers are borrowed and will be automatically cleared by the plugin.