CyberLink for C

cdevice_advertiser.c File Reference

#include <cybergarage/upnp/cdevice.h>
#include <cybergarage/util/ctime.h>
#include <cybergarage/util/clog.h>

Functions

static void cg_upnp_device_advertiser_action (CgThread *thread)
BOOL cg_upnp_device_advertiser_start (CgUpnpDevice *dev)
BOOL cg_upnp_device_advertiser_stop (CgUpnpDevice *dev)
BOOL cg_upnp_device_advertiser_isrunning (CgUpnpDevice *dev)

Function Documentation

static void cg_upnp_device_advertiser_action ( CgThread *  thread) [static]

cg_upnp_device_advertiser_action

Function run as a UPnP device advertisement thread.

Parameters:
threadThe thread context that this function is running in

Get the device struct that this function is advertising.

Lease time

BOOL cg_upnp_device_advertiser_isrunning ( CgUpnpDevice *  dev)

cg_upnp_device_advertiser_isrunning

Check if the advertiser has been started

Parameters:
devDevice that is being advertised
BOOL cg_upnp_device_advertiser_start ( CgUpnpDevice *  dev)

cg_upnp_device_advertiser_start

Start the advertiser thread for the given device

Parameters:
devThe device that is to be advertised
BOOL cg_upnp_device_advertiser_stop ( CgUpnpDevice *  dev)

cg_upnp_device_advertiser_stop

Stop the advertiser thread for the given device

Parameters:
devDevice that is being advertised