libUPnP  1.14.22
Functions
gena_device.h File Reference
#include "httpparser.h"
#include "sock.h"
Include dependency graph for gena_device.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void gena_process_subscription_request (SOCKINFO *info, http_message_t *request)
 Handles a subscription request from a ctrl point. The socket is not closed on return. More...
 
void gena_process_subscription_renewal_request (SOCKINFO *info, http_message_t *request)
 Handles a subscription renewal request from a ctrl point. The connection is not destroyed on return. More...
 
void gena_process_unsubscribe_request (SOCKINFO *info, http_message_t *request)
 Handles a subscription cancellation request from a ctrl point. The connection is not destroyed on return. More...
 

Function Documentation

void gena_process_subscription_renewal_request ( SOCKINFO info,
http_message_t request 
)

Handles a subscription renewal request from a ctrl point. The connection is not destroyed on return.

Parameters
[in]infoSocket info of the device.
[in]requestSubscription renewal request from the control point.

References memptr::buf, membuffer::buf, device_handle, error_respond(), SOCKINFO::foreign_sockaddr, GetDeviceHandleInfoForPath(), GetSubscriptionSID(), memptr::length, Handle_Info::MaxSubscriptions, Handle_Info::MaxSubscriptionTimeOut, membuffer_append(), membuffer_destroy(), membuffer_init(), memptr_cmp_nocase(), PARSE_OK, RemoveSubscriptionSID(), respond_ok(), UPNP_E_SUCCESS, UpnpPrintf(), and http_message_t::uri.

Referenced by genaCallback().

void gena_process_subscription_request ( SOCKINFO info,
http_message_t request 
)
void gena_process_unsubscribe_request ( SOCKINFO info,
http_message_t request 
)

Handles a subscription cancellation request from a ctrl point. The connection is not destroyed on return.

Parameters
[in]infoSocket info of the device.
[in]requestUNSUBSCRIBE request from the control point.

References memptr::buf, membuffer::buf, device_handle, error_respond(), SOCKINFO::foreign_sockaddr, GetDeviceHandleInfoForPath(), GetSubscriptionSID(), memptr::length, membuffer_append(), membuffer_destroy(), membuffer_init(), RemoveSubscriptionSID(), and http_message_t::uri.

Referenced by genaCallback().