downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | conferences | my php.net

search for in the

gupnp_control_point_browse_stop> <gupnp_context_unhost_path
[edit] Last updated: Fri, 17 May 2013

view this page in

gupnp_control_point_browse_start

(PECL gupnp >= 0.1.0)

gupnp_control_point_browse_startComienza la navegación

Descripción

bool gupnp_control_point_browse_start ( resource $cpoint )

Inicia la búsqueda y ejecución de los callback definidos por el usuario.

Parámetros

cpoint

Un identificador de punto de control, devuelto por gupnp_control_point_new().

Valores devueltos

Devuelve TRUE en caso de éxito o FALSE en caso de error.

Ejemplos

Ejemplo #1 Crea un nuevo contexto UPnP y comienza a navegar

<?php

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

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

    
printf("Dispositivo Disponible:\n");
    
printf("tipo:     %s\n"$type);
    
printf("ubicación: %s\n"$location);
}

/* Crea un contexto UPnP */
$context gupnp_context_new();

if (!
$context) {
 die(
"Error creando el contexto GUPnP\n");
}

/* Estamos interesados en todo */
$cp gupnp_control_point_new($context"ssdp:all");

gupnp_control_point_callback_set($cp
    
GUPNP_SIGNAL_DEVICE_PROXY_AVAILABLE'device_proxy_available_cb');

/* Comienza a navegar */
gupnp_control_point_browse_start($cp);

?>

Ver también



add a note add a note User Contributed Notes gupnp_control_point_browse_start - [0 notes]
There are no user contributed notes for this page.

 
show source | credits | stats | sitemap | contact | advertising | mirror sites