(PECL gupnp >= 0.1.0)
gupnp_service_action_return_error — Return error code
$action
, int $error_code
[, string $error_description
] )Return error code.
actionA service action identifier.
error_codeThe error code. Signal can be one of the following values or user defined:
GUPNP_CONTROL_ERROR_INVALID_ACTIONGUPNP_CONTROL_ERROR_INVALID_ARGSGUPNP_CONTROL_ERROR_OUT_OF_SYNCGUPNP_CONTROL_ERROR_ACTION_FAILEDerror_descriptionThe error description.
成功时返回 TRUE, 或者在失败时返回 FALSE。