Delegate SharedDnsResolverCallback
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
hostnamechar*[In] A hostname to resolve to.
ipResolvedWriteBufferchar*[Ref] A pointer to the buffer in which the main application will write the UTF-16 unsigned string (with null terminator) to.
ipResolvedWriteBufferLengthint[In] The length of the buffer that the main application able to write.
ipResolvedWriteCountint*[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.