Class Resolver
public class Resolver
- Inheritance
-
Resolver
- Inherited Members
Methods
FreeAddresses(ListHandle)
Calls native function g_resolver_free_addresses. Version: 2.22
[Version("2.22")]
public static extern void FreeAddresses(ListHandle addresses)
Parameters
addresses
ListHandleTransfer ownership: None Nullable: False
FreeTargets(ListHandle)
Calls native function g_resolver_free_targets. Version: 2.22
[Version("2.22")]
public static extern void FreeTargets(ListHandle targets)
Parameters
targets
ListHandleTransfer ownership: None Nullable: False
GetDefault()
Calls native function g_resolver_get_default. Version: 2.22
[Version("2.22")]
public static extern IntPtr GetDefault()
Returns
- IntPtr
Transfer ownership: Full Nullable: False
GetGType()
Calls native function g_resolver_get_type.
public static extern nuint GetGType()
Returns
- nuint
Transfer ownership: None Nullable: False
GetTimeout(IntPtr)
Calls native method g_resolver_get_timeout. Version: 2.78
[Version("2.78")]
public static extern uint GetTimeout(IntPtr resolver)
Parameters
resolver
IntPtrTransfer ownership: None Nullable: False
Returns
- uint
Transfer ownership: None Nullable: False
LookupByAddress(IntPtr, IntPtr, IntPtr, out ErrorOwnedHandle)
Calls native method g_resolver_lookup_by_address. Version: 2.22
[Version("2.22")]
public static extern NonNullableUtf8StringOwnedHandle LookupByAddress(IntPtr resolver, IntPtr address, IntPtr cancellable, out ErrorOwnedHandle error)
Parameters
resolver
IntPtrTransfer ownership: None Nullable: False
address
IntPtrTransfer ownership: None Nullable: False
cancellable
IntPtrTransfer ownership: None Nullable: True
error
ErrorOwnedHandle
Returns
- NonNullableUtf8StringOwnedHandle
Transfer ownership: Full Nullable: False
LookupByAddressAsync(IntPtr, IntPtr, IntPtr, AsyncReadyCallback, IntPtr)
Calls native method g_resolver_lookup_by_address_async. Version: 2.22
[Version("2.22")]
public static extern void LookupByAddressAsync(IntPtr resolver, IntPtr address, IntPtr cancellable, AsyncReadyCallback callback, IntPtr userData)
Parameters
resolver
IntPtrTransfer ownership: None Nullable: False
address
IntPtrTransfer ownership: None Nullable: False
cancellable
IntPtrTransfer ownership: None Nullable: True
callback
AsyncReadyCallbackTransfer ownership: None Nullable: True
userData
IntPtrTransfer ownership: None Nullable: True
LookupByAddressFinish(IntPtr, IntPtr, out ErrorOwnedHandle)
Calls native method g_resolver_lookup_by_address_finish. Version: 2.22
[Version("2.22")]
public static extern NonNullableUtf8StringOwnedHandle LookupByAddressFinish(IntPtr resolver, IntPtr result, out ErrorOwnedHandle error)
Parameters
resolver
IntPtrTransfer ownership: None Nullable: False
result
IntPtrTransfer ownership: None Nullable: False
error
ErrorOwnedHandle
Returns
- NonNullableUtf8StringOwnedHandle
Transfer ownership: Full Nullable: False
LookupByName(IntPtr, NonNullableUtf8StringHandle, IntPtr, out ErrorOwnedHandle)
Calls native method g_resolver_lookup_by_name. Version: 2.22
[Version("2.22")]
public static extern ListOwnedHandle LookupByName(IntPtr resolver, NonNullableUtf8StringHandle hostname, IntPtr cancellable, out ErrorOwnedHandle error)
Parameters
resolver
IntPtrTransfer ownership: None Nullable: False
hostname
NonNullableUtf8StringHandleTransfer ownership: None Nullable: False
cancellable
IntPtrTransfer ownership: None Nullable: True
error
ErrorOwnedHandle
Returns
- ListOwnedHandle
Transfer ownership: Full Nullable: False
LookupByNameAsync(IntPtr, NonNullableUtf8StringHandle, IntPtr, AsyncReadyCallback, IntPtr)
Calls native method g_resolver_lookup_by_name_async. Version: 2.22
[Version("2.22")]
public static extern void LookupByNameAsync(IntPtr resolver, NonNullableUtf8StringHandle hostname, IntPtr cancellable, AsyncReadyCallback callback, IntPtr userData)
Parameters
resolver
IntPtrTransfer ownership: None Nullable: False
hostname
NonNullableUtf8StringHandleTransfer ownership: None Nullable: False
cancellable
IntPtrTransfer ownership: None Nullable: True
callback
AsyncReadyCallbackTransfer ownership: None Nullable: True
userData
IntPtrTransfer ownership: None Nullable: True
LookupByNameFinish(IntPtr, IntPtr, out ErrorOwnedHandle)
Calls native method g_resolver_lookup_by_name_finish. Version: 2.22
[Version("2.22")]
public static extern ListOwnedHandle LookupByNameFinish(IntPtr resolver, IntPtr result, out ErrorOwnedHandle error)
Parameters
resolver
IntPtrTransfer ownership: None Nullable: False
result
IntPtrTransfer ownership: None Nullable: False
error
ErrorOwnedHandle
Returns
- ListOwnedHandle
Transfer ownership: Full Nullable: False
LookupByNameWithFlags(IntPtr, NonNullableUtf8StringHandle, ResolverNameLookupFlags, IntPtr, out ErrorOwnedHandle)
Calls native method g_resolver_lookup_by_name_with_flags. Version: 2.60
[Version("2.60")]
public static extern ListOwnedHandle LookupByNameWithFlags(IntPtr resolver, NonNullableUtf8StringHandle hostname, ResolverNameLookupFlags flags, IntPtr cancellable, out ErrorOwnedHandle error)
Parameters
resolver
IntPtrTransfer ownership: None Nullable: False
hostname
NonNullableUtf8StringHandleTransfer ownership: None Nullable: False
flags
ResolverNameLookupFlagsTransfer ownership: None Nullable: False
cancellable
IntPtrTransfer ownership: None Nullable: True
error
ErrorOwnedHandle
Returns
- ListOwnedHandle
Transfer ownership: Full Nullable: False
LookupByNameWithFlagsAsync(IntPtr, NonNullableUtf8StringHandle, ResolverNameLookupFlags, IntPtr, AsyncReadyCallback, IntPtr)
Calls native method g_resolver_lookup_by_name_with_flags_async. Version: 2.60
[Version("2.60")]
public static extern void LookupByNameWithFlagsAsync(IntPtr resolver, NonNullableUtf8StringHandle hostname, ResolverNameLookupFlags flags, IntPtr cancellable, AsyncReadyCallback callback, IntPtr userData)
Parameters
resolver
IntPtrTransfer ownership: None Nullable: False
hostname
NonNullableUtf8StringHandleTransfer ownership: None Nullable: False
flags
ResolverNameLookupFlagsTransfer ownership: None Nullable: False
cancellable
IntPtrTransfer ownership: None Nullable: True
callback
AsyncReadyCallbackTransfer ownership: None Nullable: True
userData
IntPtrTransfer ownership: None Nullable: True
LookupByNameWithFlagsFinish(IntPtr, IntPtr, out ErrorOwnedHandle)
Calls native method g_resolver_lookup_by_name_with_flags_finish. Version: 2.60
[Version("2.60")]
public static extern ListOwnedHandle LookupByNameWithFlagsFinish(IntPtr resolver, IntPtr result, out ErrorOwnedHandle error)
Parameters
resolver
IntPtrTransfer ownership: None Nullable: False
result
IntPtrTransfer ownership: None Nullable: False
error
ErrorOwnedHandle
Returns
- ListOwnedHandle
Transfer ownership: Full Nullable: False
LookupRecords(IntPtr, NonNullableUtf8StringHandle, ResolverRecordType, IntPtr, out ErrorOwnedHandle)
Calls native method g_resolver_lookup_records. Version: 2.34
[Version("2.34")]
public static extern ListOwnedHandle LookupRecords(IntPtr resolver, NonNullableUtf8StringHandle rrname, ResolverRecordType recordType, IntPtr cancellable, out ErrorOwnedHandle error)
Parameters
resolver
IntPtrTransfer ownership: None Nullable: False
rrname
NonNullableUtf8StringHandleTransfer ownership: None Nullable: False
recordType
ResolverRecordTypeTransfer ownership: None Nullable: False
cancellable
IntPtrTransfer ownership: None Nullable: True
error
ErrorOwnedHandle
Returns
- ListOwnedHandle
Transfer ownership: Full Nullable: False
LookupRecordsAsync(IntPtr, NonNullableUtf8StringHandle, ResolverRecordType, IntPtr, AsyncReadyCallback, IntPtr)
Calls native method g_resolver_lookup_records_async. Version: 2.34
[Version("2.34")]
public static extern void LookupRecordsAsync(IntPtr resolver, NonNullableUtf8StringHandle rrname, ResolverRecordType recordType, IntPtr cancellable, AsyncReadyCallback callback, IntPtr userData)
Parameters
resolver
IntPtrTransfer ownership: None Nullable: False
rrname
NonNullableUtf8StringHandleTransfer ownership: None Nullable: False
recordType
ResolverRecordTypeTransfer ownership: None Nullable: False
cancellable
IntPtrTransfer ownership: None Nullable: True
callback
AsyncReadyCallbackTransfer ownership: None Nullable: True
userData
IntPtrTransfer ownership: None Nullable: True
LookupRecordsFinish(IntPtr, IntPtr, out ErrorOwnedHandle)
Calls native method g_resolver_lookup_records_finish. Version: 2.34
[Version("2.34")]
public static extern ListOwnedHandle LookupRecordsFinish(IntPtr resolver, IntPtr result, out ErrorOwnedHandle error)
Parameters
resolver
IntPtrTransfer ownership: None Nullable: False
result
IntPtrTransfer ownership: None Nullable: False
error
ErrorOwnedHandle
Returns
- ListOwnedHandle
Transfer ownership: Full Nullable: False
LookupService(IntPtr, NonNullableUtf8StringHandle, NonNullableUtf8StringHandle, NonNullableUtf8StringHandle, IntPtr, out ErrorOwnedHandle)
Calls native method g_resolver_lookup_service. Version: 2.22
[Version("2.22")]
public static extern ListOwnedHandle LookupService(IntPtr resolver, NonNullableUtf8StringHandle service, NonNullableUtf8StringHandle protocol, NonNullableUtf8StringHandle domain, IntPtr cancellable, out ErrorOwnedHandle error)
Parameters
resolver
IntPtrTransfer ownership: None Nullable: False
service
NonNullableUtf8StringHandleTransfer ownership: None Nullable: False
protocol
NonNullableUtf8StringHandleTransfer ownership: None Nullable: False
domain
NonNullableUtf8StringHandleTransfer ownership: None Nullable: False
cancellable
IntPtrTransfer ownership: None Nullable: True
error
ErrorOwnedHandle
Returns
- ListOwnedHandle
Transfer ownership: Full Nullable: False
LookupServiceAsync(IntPtr, NonNullableUtf8StringHandle, NonNullableUtf8StringHandle, NonNullableUtf8StringHandle, IntPtr, AsyncReadyCallback, IntPtr)
Calls native method g_resolver_lookup_service_async. Version: 2.22
[Version("2.22")]
public static extern void LookupServiceAsync(IntPtr resolver, NonNullableUtf8StringHandle service, NonNullableUtf8StringHandle protocol, NonNullableUtf8StringHandle domain, IntPtr cancellable, AsyncReadyCallback callback, IntPtr userData)
Parameters
resolver
IntPtrTransfer ownership: None Nullable: False
service
NonNullableUtf8StringHandleTransfer ownership: None Nullable: False
protocol
NonNullableUtf8StringHandleTransfer ownership: None Nullable: False
domain
NonNullableUtf8StringHandleTransfer ownership: None Nullable: False
cancellable
IntPtrTransfer ownership: None Nullable: True
callback
AsyncReadyCallbackTransfer ownership: None Nullable: True
userData
IntPtrTransfer ownership: None Nullable: True
LookupServiceFinish(IntPtr, IntPtr, out ErrorOwnedHandle)
Calls native method g_resolver_lookup_service_finish. Version: 2.22
[Version("2.22")]
public static extern ListOwnedHandle LookupServiceFinish(IntPtr resolver, IntPtr result, out ErrorOwnedHandle error)
Parameters
resolver
IntPtrTransfer ownership: None Nullable: False
result
IntPtrTransfer ownership: None Nullable: False
error
ErrorOwnedHandle
Returns
- ListOwnedHandle
Transfer ownership: Full Nullable: False
SetDefault(IntPtr)
Calls native method g_resolver_set_default. Version: 2.22
[Version("2.22")]
public static extern void SetDefault(IntPtr resolver)
Parameters
resolver
IntPtrTransfer ownership: None Nullable: False
SetTimeout(IntPtr, uint)
Calls native method g_resolver_set_timeout. Version: 2.78
[Version("2.78")]
public static extern void SetTimeout(IntPtr resolver, uint timeoutMs)