is_allowed


Description:

public abstract bool is_allowed (Device? device, Service? service, string path, string address, string? agent)

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

Parameters:

this

an instance of 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 unknown. returns true if the peer is allowed, false otherwise