Interface

GUPnP-1.6GUPnPAclInterface

Interface for implementing Acl. Contains only the virtual methods that need to be implemented.

interface Interface {
    vfunc_can_sync(): boolean;
    vfunc_is_allowed(
        device: GUPnP.Device,
        service: GUPnP.Service,
        path: string,
        address: string,
        agent?: string,
    ): boolean;
    vfunc_is_allowed_async(
        device: GUPnP.Device,
        service: GUPnP.Service,
        path: string,
        address: string,
        agent?: string,
        cancellable?: Gio.Cancellable,
        callback?: AsyncReadyCallback<GUPnP.Acl.Interface>,
    ): void;
    vfunc_is_allowed_finish(res: Gio.AsyncResult): boolean;
}

Hierarchy (View Summary)

Index

Methods

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

    Parameters

    • device: GUPnP.Device

      The GUPnP.Device associated with path or null if unknown.

    • service: GUPnP.Service

      The GUPnP.Service associated with path or null if unknown.

    • path: string

      The path being served.

    • address: string

      IP address of the peer.

    • Optionalagent: string

      The User-Agent header of the peer or null if unknown. returns true if the peer is allowed, false otherwise

    Returns boolean