Table of Contents

Class Resolver

Namespace
Gio.Internal
Assembly
Gio-2.0.dll
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 ListHandle

Transfer 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 ListHandle

Transfer 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 IntPtr

Transfer 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 IntPtr

Transfer ownership: None Nullable: False

address IntPtr

Transfer ownership: None Nullable: False

cancellable IntPtr

Transfer 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 IntPtr

Transfer ownership: None Nullable: False

address IntPtr

Transfer ownership: None Nullable: False

cancellable IntPtr

Transfer ownership: None Nullable: True

callback AsyncReadyCallback

Transfer ownership: None Nullable: True

userData IntPtr

Transfer 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 IntPtr

Transfer ownership: None Nullable: False

result IntPtr

Transfer 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 IntPtr

Transfer ownership: None Nullable: False

hostname NonNullableUtf8StringHandle

Transfer ownership: None Nullable: False

cancellable IntPtr

Transfer 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 IntPtr

Transfer ownership: None Nullable: False

hostname NonNullableUtf8StringHandle

Transfer ownership: None Nullable: False

cancellable IntPtr

Transfer ownership: None Nullable: True

callback AsyncReadyCallback

Transfer ownership: None Nullable: True

userData IntPtr

Transfer 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 IntPtr

Transfer ownership: None Nullable: False

result IntPtr

Transfer 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 IntPtr

Transfer ownership: None Nullable: False

hostname NonNullableUtf8StringHandle

Transfer ownership: None Nullable: False

flags ResolverNameLookupFlags

Transfer ownership: None Nullable: False

cancellable IntPtr

Transfer 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 IntPtr

Transfer ownership: None Nullable: False

hostname NonNullableUtf8StringHandle

Transfer ownership: None Nullable: False

flags ResolverNameLookupFlags

Transfer ownership: None Nullable: False

cancellable IntPtr

Transfer ownership: None Nullable: True

callback AsyncReadyCallback

Transfer ownership: None Nullable: True

userData IntPtr

Transfer 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 IntPtr

Transfer ownership: None Nullable: False

result IntPtr

Transfer 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 IntPtr

Transfer ownership: None Nullable: False

rrname NonNullableUtf8StringHandle

Transfer ownership: None Nullable: False

recordType ResolverRecordType

Transfer ownership: None Nullable: False

cancellable IntPtr

Transfer 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 IntPtr

Transfer ownership: None Nullable: False

rrname NonNullableUtf8StringHandle

Transfer ownership: None Nullable: False

recordType ResolverRecordType

Transfer ownership: None Nullable: False

cancellable IntPtr

Transfer ownership: None Nullable: True

callback AsyncReadyCallback

Transfer ownership: None Nullable: True

userData IntPtr

Transfer 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 IntPtr

Transfer ownership: None Nullable: False

result IntPtr

Transfer 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 IntPtr

Transfer ownership: None Nullable: False

service NonNullableUtf8StringHandle

Transfer ownership: None Nullable: False

protocol NonNullableUtf8StringHandle

Transfer ownership: None Nullable: False

domain NonNullableUtf8StringHandle

Transfer ownership: None Nullable: False

cancellable IntPtr

Transfer 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 IntPtr

Transfer ownership: None Nullable: False

service NonNullableUtf8StringHandle

Transfer ownership: None Nullable: False

protocol NonNullableUtf8StringHandle

Transfer ownership: None Nullable: False

domain NonNullableUtf8StringHandle

Transfer ownership: None Nullable: False

cancellable IntPtr

Transfer ownership: None Nullable: True

callback AsyncReadyCallback

Transfer ownership: None Nullable: True

userData IntPtr

Transfer 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 IntPtr

Transfer ownership: None Nullable: False

result IntPtr

Transfer 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 IntPtr

Transfer 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)

Parameters

resolver IntPtr

Transfer ownership: None Nullable: False

timeoutMs uint

Transfer ownership: None Nullable: False