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

Optional.

Check asynchronously whether an IP address is allowed to access this resource. Use this function if the process of verifying the access right is expected to take some time, for example when using D-Bus etc.

If this function is supported, can_sync should return true .

Use is_allowed_async.end to retrieve the result.

Parameters:

this

a Acl

device

The Device associated with path or null if unknown.

service

The 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.