Home > PHP > Function > Gupnp > gupnp_service_proxy_callback_set()

gupnp_service_proxy_callback_set()

gupnp_service_proxy_callback_set - Set service proxy callback for signal

Syntax

bool gupnp_service_proxy_callback_set (resource $proxy, int $signal, mixed $callback, mixed $arg)

Arguments

  • proxy - A service proxy identifier.
  • signal - The value of signal. GUPNP_SIGNAL_SUBSCRIPTION_LOST Emitted whenever the subscription to this service has been lost due to an error condition.
  • 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.

Description

Set service proxy callback for signal.

Version

PHP PECL gupnp >= 0.1.0

Return value

Returns TRUE on success or FALSE on failure.