Example #1
0
void *advertiseAndReplyThread(void *data)
{
	SsdpSearchReply *arg = (SsdpSearchReply *) data;

	AdvertiseAndReply(0, arg->handle,
			  arg->event.RequestType,
			  (struct sockaddr *)&arg->dest_addr,
			  arg->event.DeviceType,
			  arg->event.UDN, arg->event.ServiceType, arg->MaxAge);
	free(arg);

	return NULL;
}
Example #2
0
/************************************************************************
* Function : advertiseAndReplyThread									
*																	
* Parameters:														
*		IN void *data: Structure containing the search request
*
* Description:														
*	This function is a wrapper function to reply the search request 
*	coming from the control point.
*
* Returns: void *
*	always return NULL
***************************************************************************/
void *
advertiseAndReplyThread( IN void *data )
{
    SsdpSearchReply *arg = ( SsdpSearchReply * ) data;

    AdvertiseAndReply( 0, arg->handle,
                       arg->event.RequestType,
                       &arg->dest_addr,
                       arg->event.DeviceType,
                       arg->event.UDN,
                       arg->event.ServiceType, arg->MaxAge );
#ifdef _UPNP_MM_
    upnp_free( arg );
#else
    free( arg );
#endif

    return NULL;
}