gupnp_service_proxy_callback_set

(PECL gupnp >= 0.1.0)
Set service proxy callback for signal
bool gupnp_service_proxy_callback_set ( resource $proxy, int $signal, mixed $callback [, mixed $arg ] )

Set service proxy callback for signal.

Parameters:
proxy

A service proxy identifier.

signal

The value of signal.

callback

The callback function for the certain signal. Typically, callback function takes on two parameters. error parameter's message being the first, and the arg is second.

arg

User data for callback.

Returns:

Returns TRUE on success or FALSE on failure.

Exception:

Issues E_WARNING either with not valid callback function or with not valid signal.

doc_php
2016-02-24 16:09:09
Comments
Leave a Comment

Please login to continue.