Address.resolveSync

Synchronously resolves the missing half of @addr, as with soup_address_resolve_async().

If @cancellable is non-%NULL, it can be used to cancel the resolution. soup_address_resolve_sync() will then return a status of %SOUP_STATUS_CANCELLED.

It is safe to call this more than once, even from different threads, but it is not safe to mix calls to soup_address_resolve_sync() with calls to soup_address_resolve_async() on the same address.

class Address
uint
resolveSync
(
Cancellable cancellable
)

Parameters

cancellable Cancellable

a #GCancellable object, or %NULL

Return Value

Type: uint

%SOUP_STATUS_OK, %SOUP_STATUS_CANT_RESOLVE, or %SOUP_STATUS_CANCELLED.

Meta