resolve_async


Description:

public void resolve_async (MainContext? async_context, Cancellable? cancellable, AddressCallback callback)

Asynchronously resolves the missing half of this (its IP address if it was created with Address, or its hostname if it was created with Address.from_sockaddr or Address.any.

)

If cancellable is non-null, it can be used to cancel the resolution. callback will still be invoked in this case, with a status of soup_status_cancelled.

It is safe to call this more than once on a given address, from the same thread, with the same async_context (and doing so will not result in redundant DNS queries being made). But it is not safe to call from multiple threads, or with different async_contexts, or mixed with calls to resolve_sync.

Parameters:

this

a Address

async_context

the MainContext to call callback from

cancellable

a Cancellable object, or null

callback

callback to call with the result

user_data

data for callback