downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

gupnp_service_proxy_callback_set> <gupnp_service_proxy_action_set
Last updated: Fri, 20 May 2011

view this page in

gupnp_service_proxy_add_notify

(PECL gupnp >= 0.1.0)

gupnp_service_proxy_add_notifyEstablece un callback de notificación de cambios en variables

Descripción

bool gupnp_service_proxy_add_notify ( resource $proxy , string $value , int $type , mixed $callback [, mixed $arg ] )

Establece un callback a ser llamado cuando una notificación de cambio de variable es recibida.

Parámetros

proxy

Un identificador de servicio proxy.

value

La variable a agregar a la notificación.

type

El tipo de variable. El tipo puede ser uno de los siguientes valores:

GUPNP_TYPE_BOOLEAN
Este tipo de variable es boolean.
GUPNP_TYPE_INT
Este tipo de variable es integer.
GUPNP_TYPE_LONG
Este tipo de variable es long.
GUPNP_TYPE_DOUBLE
Este tipo de variable es double.
GUPNP_TYPE_FLOAT
Este tipo de variable es float.
GUPNP_TYPE_STRING
Este tipo de variable es string.

callback

El callback a ejecutar cuando la variable cambia. Típicamente, la función callback toma tres parámetros. Siendo el primer parámetro la variable, el segundo parámetro el value, y arg es el tercero.

arg

Datos de usuario para callback.

Valores devueltos

Devuelve TRUE en caso de éxito o FALSE en caso de error.

Ver también



add a note add a note User Contributed Notes gupnp_service_proxy_add_notify
There are no user contributed notes for this page.

 
show source | credits | stats | sitemap | contact | advertising | mirror sites