Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

gupnp_root_device_new(3) [php man page]

GUPNP_ROOT_DEVICE_NEW(3)						 1						  GUPNP_ROOT_DEVICE_NEW(3)

gupnp_root_device_new - Create a new root device

SYNOPSIS
resource gupnp_root_device_new (resource $context, string $location, string $description_dir) DESCRIPTION
Create a new root device, automatically downloading and parsing location. PARAMETERS
o $context - A context identifier, returned by gupnp_context_new(3). o $location - Location of the description file for this device, relative to the HTTP root RETURN VALUES
A root device identifier. EXAMPLES
Example #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 "); } /* Create root device */ $location = "/BinaryLight1.xml"; $dev = gupnp_root_device_new($context, $location); ?> SEE ALSO
gupnp_root_device_set_available(3), gupnp_root_device_start(3), gupnp_root_device_stop(3). PHP Documentation Group GUPNP_ROOT_DEVICE_NEW(3)

Check Out this Related Man Page

GUPNP_CONTROL_POINT_BROWSE_START(3)					 1				       GUPNP_CONTROL_POINT_BROWSE_START(3)

gupnp_control_point_browse_start - Start browsing

SYNOPSIS
bool gupnp_control_point_browse_start (resource $cpoint) DESCRIPTION
Start the search and calls user-defined callback. PARAMETERS
o $cpoint - A control point identifier, returned by gupnp_control_point_new(3). RETURN VALUES
Returns TRUE on success or FALSE on failure. EXAMPLES
Example #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: "); printf("type: %s ", $type); printf("location: %s ", $location); } /* Create the UPnP context */ $context = gupnp_context_new(); if (!$context) { die("Error creating the GUPnP context "); } /* 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); ?> SEE ALSO
gupnp_control_point_new(3), gupnp_control_point_browse_stop(3). PHP Documentation Group GUPNP_CONTROL_POINT_BROWSE_START(3)
Man Page

4 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

device location codes

what is meant by device location codes? what is their format and how can i identify the location of a device in redhat linux? (1 Reply)
Discussion started by: docaia
1 Replies

2. UNIX for Dummies Questions & Answers

Location of File

Hii I need to find the location of a file . i know the beginning of the name but i dont know the directory its saved in how can i find the location ??? Please help :confused: (4 Replies)
Discussion started by: shikhakaul
4 Replies

3. Shell Programming and Scripting

Create a file based on multiple files

(0 Replies)
Discussion started by: coach5779
0 Replies

4. Shell Programming and Scripting

Create a condition for a non-included string

(0 Replies)
Discussion started by: h0ujun
0 Replies