gupnp_context_get_host_ip

Get the IP address

说明

string gupnp_context_get_host_ip ( resource $context )

Get the IP address we advertise ourselves as using.

参数

context
A context identifier, returned by gupnp_context_new.

返回值

Returns the IP address for the current context and FALSE on error.

范例

示例 #1 Create new UPnP context and get IP address of the host

<?php

/* Create the UPnP context */
$context = gupnp_context_new();

if (!$context) {
 die("Error creating the GUPnP context\n");
}

/* Get IP address for the UPnP context */
$ip = gupnp_context_get_host_ip($context);
echo $ip;

?>

参见

  • gupnp_context_new
  • gupnp_context_get_port

gupnp_context_get_port

Get the port

说明

int gupnp_context_get_port ( resource $context )

Get the port that the SOAP server is running on.

参数

context
A context identifier, returned by gupnp_context_new.

返回值

Returns the port number for the current context and FALSE on error.

范例

示例 #1 Create new UPnP context and get port number

<?php

/* Create the UPnP context */
$context = gupnp_context_new();

if (!$context) {
 die("Error creating the GUPnP context\n");
}

/* Get the port number for the UPnP context */
$port = gupnp_context_get_port($context);
echo $port;

?>

参见

  • gupnp_context_new
  • gupnp_context_get_host_ip

gupnp_context_get_subscription_timeout

Get the event subscription timeout

说明

int gupnp_context_get_subscription_timeout ( resource $context )

Get the event subscription timeout (in seconds), or 0 meaning there is no timeout.

参数

context
A context identifier, returned by gupnp_context_new.

返回值

The event subscription timeout in seconds.

参见

  • gupnp_context_new
  • gupnp_context_set_subscription_timeout

gupnp_context_host_path

Start hosting

说明

bool gupnp_context_host_path ( resource $context , string $local_path , string $server_path )

Start hosting local_path at server_path. Files with the path local_path.LOCALE (if they exist) will be served up when LOCALE is specified in the request's Accept-Language header.

参数

context
A context identifier, returned by gupnp_context_new.

local_path
Path to the local file or folder to be hosted.

server_path
Web server path where local_path should be hosted.

返回值

成功时返回 TRUE, 或者在失败时返回 FALSE

范例

示例 #1 Create new UPnP context and set host path

<?php

/* Create the UPnP context */
$context = gupnp_context_new();

if (!$context) {
 die("Error creating the GUPnP context\n");
}

/* Host current directory */
gupnp_context_host_path($context, "./web", "");

?>

参见

  • gupnp_context_new
  • gupnp_context_unhost_path

gupnp_context_new

Create a new context

说明

resource gupnp_context_new ([ string $host_ip [, int $port = 0 ]] )

Create a new context with the specified host_ip and port.

参数

host_ip
The local host's IP address, or NULL to use the IP address of the first non-loopback network interface.

port
Port to run on, or 0 if you don't care what port is used.

返回值

A context identifier.

范例

示例 #1 Create new UPnP context

<?php

/* Create the UPnP context */
$context = gupnp_context_new();

if (!$context) {
 die("Error creating the GUPnP context\n");
}

?>

错误/异常

Issues E_WARNING with unable to create context.

gupnp_context_set_subscription_timeout

Sets the event subscription timeout

说明

void gupnp_context_set_subscription_timeout ( resource $context , int $timeout )

Sets the event subscription timeout (in seconds) to time out. Note that any client side subscriptions will automatically be renewed.

参数

context
A context identifier, returned by gupnp_context_new.

timeout
The event subscription timeout in seconds. Use 0 if you don't want subscriptions to time out.

返回值

没有返回值。

参见

  • gupnp_context_new
  • gupnp_context_get_subscription_timeout

gupnp_context_timeout_add

Sets a function to be called at regular intervals

说明

bool gupnp_context_timeout_add ( resource $context , int $timeout , mixed $callback [, mixed $arg ] )

Sets a function to be called at regular intervals.

参数

context
A context identifier, returned by gupnp_context_new.

timeout
A timeout in miliseconds.

callback
The callback function calling every timeout period of time. Typically, callback function takes on arg parameter.

arg
User data for callback.

返回值

成功时返回 TRUE, 或者在失败时返回 FALSE

范例

示例 #1 Create new UPnP context and set callback

<?php

$user_data = "user data";

function timeout_cb($arg)
{
    printf("Call timeout_cb, user data: '%s'", $arg);
    return true;
}

/* Create the UPnP context */
$context = gupnp_context_new();

if (!$context) {
 die("Error creating the GUPnP context\n");
}

/* Create root device */
$dev = gupnp_root_device_new($context, "/devicedesc.xml");

/* Set callback for timeout */
gupnp_context_timeout_add($context, 5000, "timeout_cb", $user_data);

/* Run the main loop */
gupnp_root_device_start($dev);

?>

错误/异常

Issues E_WARNING with not valid callback function.

参见

  • gupnp_context_new

gupnp_context_unhost_path

Stop hosting

说明

bool gupnp_context_unhost_path ( resource $context , string $server_path )

Stop hosting the file or folder at server_path.

参数

context
A context identifier, returned by gupnp_context_new.

server_path
Web server path where the file or folder is hosted.

返回值

成功时返回 TRUE, 或者在失败时返回 FALSE

参见

  • gupnp_context_new
  • gupnp_context_host_path

gupnp_control_point_browse_start

Start browsing

说明

bool gupnp_control_point_browse_start ( resource $cpoint )

Start the search and calls user-defined callback.

参数

cpoint
A control point identifier, returned by gupnp_control_point_new.

返回值

成功时返回 TRUE, 或者在失败时返回 FALSE

范例

示例 #1 Create new UPnP context and start browsing

<?php

function device_proxy_available_cb($proxy, $arg)
{
    $info = gupnp_device_info_get($proxy);

    $type = $info['device_type'];
    $location = $info['location'];

    printf("Device available:\n");
    printf("type:     %s\n", $type);
    printf("location: %s\n", $location);
}

/* Create the UPnP context */
$context = gupnp_context_new();

if (!$context) {
 die("Error creating the GUPnP context\n");
}

/* We're interested in everything */
$cp = gupnp_control_point_new($context, "ssdp:all");

gupnp_control_point_callback_set($cp, 
    GUPNP_SIGNAL_DEVICE_PROXY_AVAILABLE, 'device_proxy_available_cb');

/* Start for browsing */
gupnp_control_point_browse_start($cp);

?>

参见

  • gupnp_control_point_new
  • gupnp_control_point_browse_stop

gupnp_control_point_browse_stop

Stop browsing

说明

bool gupnp_control_point_browse_stop ( resource $cpoint )

Stop the search and calls user-defined callback.

参数

cpoint
A control point identifier, returned by gupnp_control_point_new.

返回值

成功时返回 TRUE, 或者在失败时返回 FALSE

参见

  • gupnp_control_point_new
  • gupnp_control_point_browse_start

gupnp_control_point_callback_set

Set control point callback

说明

bool gupnp_control_point_callback_set ( resource $cpoint , int $signal , mixed $callback [, mixed $arg ] )

Set control point callback function for signal.

参数

cpoint
A control point identifier, returned by gupnp_control_point_new.

signal
The value of signal. Signal can be one of the following values:

GUPNP_SIGNAL_DEVICE_PROXY_AVAILABLE
Emitted whenever a new device has become available.

GUPNP_SIGNAL_DEVICE_PROXY_UNAVAILABLE
Emitted whenever a device is not available any more.

GUPNP_SIGNAL_SERVICE_PROXY_AVAILABLE
Emitted whenever a new service has become available.

GUPNP_SIGNAL_SERVICE_PROXY_UNAVAILABLE
Emitted whenever a service is not available any more.

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

arg
User data for callback.

返回值

成功时返回 TRUE, 或者在失败时返回 FALSE

范例

示例 #1 Create new UPnP context and start browsing

<?php

function device_proxy_available_cb($proxy, $arg)
{
    $info = gupnp_device_info_get($proxy);

    $type = $info['device_type'];
    $location = $info['location'];

    printf("Device available:\n");
    printf("type:     %s\n", $type);
    printf("location: %s\n", $location);
}

/* Create the UPnP context */
$context = gupnp_context_new();

if (!$context) {
 die("Error creating the GUPnP context\n");
}

/* We're interested in everything */
$cp = gupnp_control_point_new($context, "ssdp:all");

gupnp_control_point_callback_set($cp, 
    GUPNP_SIGNAL_DEVICE_PROXY_AVAILABLE, 'device_proxy_available_cb');

/* Start for browsing */
gupnp_control_point_browse_start($cp);

?>

错误/异常

Issues E_WARNING with not valid callback function.

参见

  • gupnp_control_point_new
  • gupnp_control_point_browse_start

gupnp_control_point_new

Create a new control point

说明

resource gupnp_control_point_new ( resource $context , string $target )

Create a new control point with the specified target.

参数

context
A context identifier, returned by gupnp_context_new.

target
The search target. target should be a service or device name, such as urn:schemas-upnp-org:service:WANIPConnection:1 or urn:schemas-upnp-org:device:MediaRenderer:1.

返回值

A control point identifier.

gupnp_device_action_callback_set

Set device callback function

说明

bool gupnp_device_action_callback_set ( resource $root_device , int $signal , string $action_name , mixed $callback [, mixed $arg ] )

Set device callback function for signal and action.

参数

root_device
A root device identifier, returned by gupnp_root_device_new.

signal
The value of signal. Signal can be one of the following values:

GUPNP_SIGNAL_ACTION_INVOKED
Emitted whenever an action is invoked. Handler should process action and must call either gupnp_service_action_return or gupnp_service_action_return_error.

GUPNP_SIGNAL_NOTIFY_FAILED
Emitted whenever notification of a client fails.

action_name
The name of action.

callback
The callback function for the certain signal. Typically, callback function takes on three parameters. The service parameter's identifier being the first, action parameter's identifier (in case GUPNP_SIGNAL_ACTION_INVOKED signal) or error parameter's message (in case GUPNP_SIGNAL_NOTIFY_FAILED signal) being the second, and the arg is third.

arg
User data for callback.

返回值

成功时返回 TRUE, 或者在失败时返回 FALSE

错误/异常

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

参见

  • gupnp_root_device_new

gupnp_device_info_get_service

Get the service with type

说明

resource gupnp_device_info_get_service ( resource $root_device , string $type )

Get the service with type or false if no such device was found.

参数

root_device
A root device identifier, returned by gupnp_root_device_new.

type
The type of the service to be retrieved.

返回值

A service identifier.

范例

示例 #1 Create new UPnP context and get device info service

<?php

/* Create the UPnP context */
$context = gupnp_context_new();

if (!$context) {
 die("Error creating the GUPnP context\n");
}

/* Create root device */
$location = "/BinaryLight1.xml";
$dev = gupnp_root_device_new($context, $location);

/* Set root device is available */
gupnp_root_device_set_available($dev, true);

/* Get the switch service from the root device */
$service_type = "urn:schemas-upnp-org:service:SwitchPower:1";
$service = gupnp_device_info_get_service($dev, $service_type);
if (!$service) {
    die("Cannot get SwitchPower1 service\n");
}

?>

gupnp_device_info_get

Get info of root device

说明

array gupnp_device_info_get ( resource $root_device )

Get info of root device.

参数

root_device
A root device identifier, returned by gupnp_root_device_new.

返回值

Return array wich contains the information of the root device (like location, url, udn and etc).

gupnp_root_device_get_available

Check whether root device is available

说明

bool gupnp_root_device_get_available ( resource $root_device )

Get whether or not root_device is available (announcing its presence).

参数

root_device
A root device identifier, returned by gupnp_root_device_new.

返回值

成功时返回 TRUE, 或者在失败时返回 FALSE

参见

  • gupnp_root_device_set_available

gupnp_root_device_get_relative_location

Get the relative location of root device

说明

string gupnp_root_device_get_relative_location ( resource $root_device )

Get the relative location of root device.

参数

root_device
A root device identifier, returned by gupnp_root_device_new.

返回值

The relative location of root device

gupnp_root_device_new

Create a new root device

说明

resource gupnp_root_device_new ( resource $context , string $location , string $description_dir )

Create a new root device, automatically downloading and parsing location.

参数

context
A context identifier, returned by gupnp_context_new.

location
Location of the description file for this device, relative to the HTTP root

返回值

A root device identifier.

范例

示例 #1 Create new UPnP context and get device info service

<?php

/* Create the UPnP context */
$context = gupnp_context_new();

if (!$context) {
 die("Error creating the GUPnP context\n");
}

/* Create root device */
$location = "/BinaryLight1.xml";
$dev = gupnp_root_device_new($context, $location);

?>

参见

  • gupnp_root_device_set_available
  • gupnp_root_device_start
  • gupnp_root_device_stop

gupnp_root_device_set_available

Set whether or not root_device is available

说明

bool gupnp_root_device_set_available ( resource $root_device , bool $available )

Controls whether or not root_device is available (announcing its presence).

参数

root_device
A root device identifier, returned by gupnp_root_device_new.

available
Set TRUE if root_device should be available.

返回值

成功时返回 TRUE, 或者在失败时返回 FALSE

参见

  • gupnp_root_device_get_available

gupnp_root_device_start

Start main loop

说明

bool gupnp_root_device_start ( resource $root_device )

Start root server's main loop.

参数

root_device
A root device identifier, returned by gupnp_root_device_new.

返回值

成功时返回 TRUE, 或者在失败时返回 FALSE

参见

  • gupnp_root_device_stop

gupnp_root_device_stop

Stop main loop

说明

bool gupnp_root_device_stop ( resource $root_device )

Stop root server's main loop.

参数

root_device
A root device identifier, returned by gupnp_root_device_new.

返回值

成功时返回 TRUE, 或者在失败时返回 FALSE

参见

  • gupnp_root_device_start

gupnp_service_action_get

Retrieves the specified action arguments

说明

mixed gupnp_service_action_get ( resource $action , string $name , int $type )

Retrieves the specified action arguments.

参数

action
A service action identifier.

name
The name of the variable to retrieve.

type
The type of the variable to retrieve. Type can be one of the following values:

GUPNP_TYPE_BOOLEAN
Type of the variable is boolean.

GUPNP_TYPE_INT
Type of the variable is integer.

GUPNP_TYPE_LONG
Type of the variable is long.

GUPNP_TYPE_DOUBLE
Type of the variable is double.

GUPNP_TYPE_FLOAT
Type of the variable is float.

GUPNP_TYPE_STRING
Type of the variable is string.

返回值

The value of the variable.

错误/异常

Issues E_WARNING with not correctly defined type of the variable.

参见

  • gupnp_service_action_set

gupnp_service_action_return_error

Return error code

说明

bool gupnp_service_action_return_error ( resource $action , int $error_code [, string $error_description ] )

Return error code.

参数

action
A service action identifier.

error_code
The error code. Signal can be one of the following values or user defined:

GUPNP_CONTROL_ERROR_INVALID_ACTION
The action name was invalid.

GUPNP_CONTROL_ERROR_INVALID_ARGS
The action arguments were invalid.

GUPNP_CONTROL_ERROR_OUT_OF_SYNC
Out of sync (deprecated).

GUPNP_CONTROL_ERROR_ACTION_FAILED
The action failed.

error_description
The error description.

返回值

成功时返回 TRUE, 或者在失败时返回 FALSE

参见

  • gupnp_service_action_return

gupnp_service_action_return

Return successfully

说明

bool gupnp_service_action_return ( resource $action )

Return successfully.

参数

action
A service action identifier.

返回值

成功时返回 TRUE, 或者在失败时返回 FALSE

参见

  • gupnp_service_action_return_error

gupnp_service_action_set

Sets the specified action return values

说明

bool gupnp_service_action_set ( resource $action , string $name , int $type , mixed $value )

Sets the specified action return values.

参数

action
A service action identifier.

name
The name of the variable to retrieve.

type
The type of the variable to retrieve. Type can be one of the following values:

GUPNP_TYPE_BOOLEAN
Type of the variable is boolean.

GUPNP_TYPE_INT
Type of the variable is integer.

GUPNP_TYPE_LONG
Type of the variable is long.

GUPNP_TYPE_DOUBLE
Type of the variable is double.

GUPNP_TYPE_FLOAT
Type of the variable is float.

GUPNP_TYPE_STRING
Type of the variable is string.

value
The value of the variable to retrieve.

返回值

成功时返回 TRUE, 或者在失败时返回 FALSE

错误/异常

Issues E_WARNING with neither not correctly defined type of the variable or the value is not corresponding to the defined type.

参见

  • gupnp_service_action_get

gupnp_service_freeze_notify

Freeze new notifications

说明

bool gupnp_service_freeze_notify ( resource $service )

Causes new notifications to be queued up until gupnp_service_thaw_notify is called.

参数

service
A service identifier.

返回值

成功时返回 TRUE, 或者在失败时返回 FALSE

参见

  • gupnp_service_notify
  • gupnp_service_thaw_notify

gupnp_service_info_get_introspection

Get resource introspection of service

说明

mixed gupnp_service_info_get_introspection ( resource $proxy [, mixed $callback [, mixed $arg ]] )

Get resource introspection of service or register callback if corresponding parameter was passed.

参数

proxy
A service proxy identifier.

callback
The callback function to be called when introspection object is ready. Typically, callback function takes on three parameters. The introspection parameter's identifier being the first, error parameter's message being the second, and the arg is third.

arg
User data for callback.

返回值

Return true if callback function was defined. Return introspection identifier if callback function was omited.

错误/异常

Issues E_WARNING with not valid callback function.

gupnp_service_info_get

Get full info of service

说明

array gupnp_service_info_get ( resource $proxy )

Get full info of service.

参数

proxy
A service proxy identifier.

返回值

Return array wich contains the information of the service (like location, url, udn and etc).

gupnp_service_introspection_get_state_variable

Returns the state variable data

说明

array gupnp_service_introspection_get_state_variable ( resource $introspection , string $variable_name )

Returns the state variable data by the name variable_name in this service.

参数

introspection
A introspection identifier.

variable_name
The name of the variable to retreive.

返回值

Return the state variable data or FALSE.

gupnp_service_notify

Notifies listening clients

说明

bool gupnp_service_notify ( resource $service , string $name , int $type , mixed $value )

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
Type of the variable is boolean.

GUPNP_TYPE_INT
Type of the variable is integer.

GUPNP_TYPE_LONG
Type of the variable is long.

GUPNP_TYPE_DOUBLE
Type of the variable is double.

GUPNP_TYPE_FLOAT
Type of the variable is float.

GUPNP_TYPE_STRING
Type of the variable is 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.

参见

  • gupnp_service_freeze_notify
  • gupnp_service_thaw_notify

gupnp_service_proxy_action_get

Send action to the service and get value

说明

mixed gupnp_service_proxy_action_get ( resource $proxy , string $action , string $name , int $type )

Send action with parameters to the service exposed by proxy synchronously and get value.

参数

proxy
A service proxy identifier.

action
An action.

name
The action name.

type
The type of the variable to retrieve. Type can be one of the following values:

GUPNP_TYPE_BOOLEAN
Type of the variable is boolean.

GUPNP_TYPE_INT
Type of the variable is integer.

GUPNP_TYPE_LONG
Type of the variable is long.

GUPNP_TYPE_DOUBLE
Type of the variable is double.

GUPNP_TYPE_FLOAT
Type of the variable is float.

GUPNP_TYPE_STRING
Type of the variable is string.

返回值

Return value of the action.

错误/异常

Issues E_WARNING with either not correctly defined type of the action or unable to send action.

参见

  • gupnp_service_proxy_action_set
  • gupnp_service_proxy_send_action

gupnp_service_proxy_action_set

Send action to the service and set value

说明

bool gupnp_service_proxy_action_set ( resource $proxy , string $action , string $name , mixed $value , int $type )

Send action with parameters to the service exposed by proxy synchronously and set value.

参数

proxy
A service proxy identifier.

action
An action.

name
The action name.

value
The action value.

type
The type of the action. Type can be one of the following values:

GUPNP_TYPE_BOOLEAN
Type of the variable is boolean.

GUPNP_TYPE_INT
Type of the variable is integer.

GUPNP_TYPE_LONG
Type of the variable is long.

GUPNP_TYPE_DOUBLE
Type of the variable is double.

GUPNP_TYPE_FLOAT
Type of the variable is float.

GUPNP_TYPE_STRING
Type of the variable is string.

返回值

成功时返回 TRUE, 或者在失败时返回 FALSE

错误/异常

Issues E_WARNING with either not correctly defined type of the action or unable to send action.

参见

  • gupnp_service_proxy_action_get
  • gupnp_service_proxy_send_action

gupnp_service_proxy_add_notify

Sets up callback for variable change notification

说明

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

Sets up callback to be called whenever a change notification for variable is recieved.

参数

proxy
A service proxy identifier.

value
The variable to add notification for.

type
The type of the variable. Type can be one of the following values:

GUPNP_TYPE_BOOLEAN
Type of the variable is boolean.

GUPNP_TYPE_INT
Type of the variable is integer.

GUPNP_TYPE_LONG
Type of the variable is long.

GUPNP_TYPE_DOUBLE
Type of the variable is double.

GUPNP_TYPE_FLOAT
Type of the variable is float.

GUPNP_TYPE_STRING
Type of the variable is string.

callback
The callback to call when variable changes. Typically, callback function takes on three parameters. The variable parameter being the first, value parameter being the second, and the arg is third.

arg
User data for callback.

返回值

成功时返回 TRUE, 或者在失败时返回 FALSE

参见

  • gupnp_service_proxy_remove_notify

gupnp_service_proxy_callback_set

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.

参数

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.

返回值

成功时返回 TRUE, 或者在失败时返回 FALSE

错误/异常

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

gupnp_service_proxy_get_subscribed

Check whether subscription is valid to the service

说明

bool gupnp_service_proxy_get_subscribed ( resource $proxy )

Check whether subscription is valid to the service.

参数

proxy
A service proxy identifier.

返回值

成功时返回 TRUE, 或者在失败时返回 FALSE

参见

  • gupnp_service_proxy_set_subscribed

gupnp_service_proxy_remove_notify

Cancels the variable change notification

说明

bool gupnp_service_proxy_remove_notify ( resource $proxy , string $value )

Cancels the variable change notification.

参数

proxy
A service proxy identifier.

value
The variable to add notification for.

返回值

成功时返回 TRUE, 或者在失败时返回 FALSE

参见

  • gupnp_service_proxy_add_notify

gupnp_service_proxy_send_action

Send action with multiple parameters synchronously

说明

array gupnp_service_proxy_send_action ( resource $proxy , string $action , array $in_params , array $out_params )

Send action with parameters in_params to the service exposed by proxy synchronously and return out_params with values or FALSE on error.

参数

proxy
A service proxy identifier.

action
An action.

in_params
An array of in parameters. Each entry in in_params is supposed to an array containing name, type and value of the parameters.

out_params
An array of out parameters. Each entry in out_params is supposed to an array containing name and type of the parameters.

返回值

Return out_params array with values or FALSE on error.

错误/异常

Issues E_WARNING with either not correctly defined in_params and out_params or unable to send action.

参见

  • gupnp_service_proxy_action_get
  • gupnp_service_proxy_action_set

gupnp_service_proxy_set_subscribed

(Un)subscribes to the service

说明

bool gupnp_service_proxy_set_subscribed ( resource $proxy , bool $subscribed )

(Un)subscribes to the service.

参数

proxy
A service proxy identifier.

subscribed
Set TRUE to subscribe to this service.

返回值

成功时返回 TRUE, 或者在失败时返回 FALSE

参见

  • gupnp_service_proxy_get_subscribed

gupnp_service_thaw_notify

Sends out any pending notifications and stops queuing of new ones

说明

bool gupnp_service_thaw_notify ( resource $service )

Sends out any pending notifications and stops queuing of new ones.

参数

service
A service identifier.

返回值

成功时返回 TRUE, 或者在失败时返回 FALSE

参见

  • gupnp_service_notify
  • gupnp_service_freeze_notify

目录