Address.resolveAsync

Asynchronously resolves the missing half of @addr (its IP address if it was created with soup_address_new(), or its hostname if it was created with soup_address_new_from_sockaddr() or soup_address_new_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 soup_address_resolve_sync().

class Address
void
resolveAsync

Parameters

asyncContext MainContext

the #GMainContext to call @callback from

cancellable Cancellable

a #GCancellable object, or %NULL

callback SoupAddressCallback

callback to call with the result

userData void*

data for @callback

Meta