is_allowed_async


Description:

public abstract async bool is_allowed_async (Device? device, Service? service, string path, string address, string? agent, Cancellable? cancellable) throws Error

Check asynchronously whether an IP address is allowed to access this resource.

This function is optional. [method@GUPnP.Acl.can_sync] should return true if the implementing class supports it. If it is supported, GUPnP will prefer to use this function over [method@GUPnP.Acl.is_allowed].

Implement this function if the process of verifying the access right is expected to take some time, for example when using D-Bus etc.

Use [method@GUPnP.Acl.is_allowed_finish] to retrieve the result.

Parameters:

this

a Acl

device

The [class@GUPnP.Device] associated with path or null if unknown.

service

The [class@GUPnP.Service] associated with path or null if unknown.

path

The path being served.

address

IP address of the peer

agent

The User-Agent header of the peer or null if not unknown.

cancellable

A cancellable which can be used to cancel the operation.

callback

Callback to call after the function is done.

user_data

Some user data.