Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

gupnp_control_point_browse_start(3) [php 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)

Check Out this Related Man Page

GUPNP_CONTEXT_HOST_PATH(3)						 1						GUPNP_CONTEXT_HOST_PATH(3)

gupnp_context_host_path - Start hosting

SYNOPSIS
bool gupnp_context_host_path (resource $context, string $local_path, string $server_path) DESCRIPTION
Start hosting $local_path at $server_path. Files with the path $local_path.LOCALE (if they exist) will be served up when LOCALE is speci- fied in the request's Accept-Language header. PARAMETERS
o $context - A context identifier, returned by gupnp_context_new(3). o $local_path - Path to the local file or folder to be hosted. o $server_path - Web server path where $local_path should be hosted. RETURN VALUES
Returns TRUE on success or FALSE on failure. EXAMPLES
Example #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 "); } /* Host current directory */ gupnp_context_host_path($context, "./web", ""); ?> SEE ALSO
gupnp_context_new(3), gupnp_context_unhost_path(3). PHP Documentation Group GUPNP_CONTEXT_HOST_PATH(3)
Man Page

5 More Discussions You Might Find Interesting

1. Windows & DOS: Issues & Discussions

Windows Buffering during playing

Hello! Will someone out there pls help in clearifying what is really wrong with my system. I use window 98 as my operating system. I am connected to a proxy server for browsing the net. Whenever l am listening to music online l have the problem of intermitted break in which the playing will... (10 Replies)
Discussion started by: kayode
10 Replies

2. UNIX for Dummies Questions & Answers

Where Do I Start?

Hello All, I am interested in finding out information on where would I begin my quest to become a programmer. I am a 85% - 95% mac user and have somewhat of a technical background. I would like to develope programs for macs. Any help would be appreciated. Thanks in advance. Tnecius (1 Reply)
Discussion started by: tnecius
1 Replies

3. UNIX for Dummies Questions & Answers

Setting up Linux.

Dear Administrators and Moderators, Normally I use Windows for browsing net, but few days back my pc was affected with virus. One of my friend suggested me to use Linux for safe browsing. I would like to know 1. I have Mandrake 8.2(HDD) and Obuntu 9.x(CD) - which one is better (have limited... (1 Reply)
Discussion started by: kesari
1 Replies

4. Red Hat

Start problem rhel6

what can i do now??? please help me.... (12 Replies)
Discussion started by: shakilbd
12 Replies

5. UNIX for Dummies Questions & Answers

Appending a character(#) with string search at the start of the line

Hello, I have been browsing through the forum, but unable to find a solution for my requirement. I need to go through a file and search for /home/users and insert a # symbol at the start /home/users. Example output is #/home/users. Can you please help me with the awk or sed command for... (1 Reply)
Discussion started by: chandu123
1 Replies