PHP - Manual: gupnp_service_notify
2024-12-21
(PECL gupnp >= 0.1.0)
gupnp_service_notify — Notifies listening clients
Notifies listening clients that the property have changed to the specified values.
service
A service identifier.
name
The name of the variable.
type
The type of the variable. Type can be one of the following values:
GUPNP_TYPE_BOOLEAN
GUPNP_TYPE_INT
GUPNP_TYPE_LONG
GUPNP_TYPE_DOUBLE
GUPNP_TYPE_FLOAT
GUPNP_TYPE_STRING
value
The value of the variable.
成功时返回 TRUE
, 或者在失败时返回 FALSE
。
Issues E_WARNING with either not correctly defined type of the variable or the value is not corresponding to the defined type.
官方地址:https://www.php.net/manual/en/function.gupnp-service-notify.php