libUPnP
1.6.20
|
#include "sock.h"
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... | |
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.
[in] | info | Socket info of the device. |
[in] | request | Subscription renewal request from the control point. |
References memptr::buf, membuffer::buf, device_handle, error_respond(), FindServiceEventURLPath(), SOCKINFO::foreign_sockaddr, GetDeviceHandleInfo(), GetSubscriptionSID(), memptr::length, Handle_Info::MaxSubscriptions, Handle_Info::MaxSubscriptionTimeOut, membuffer_append(), membuffer_destroy(), membuffer_init(), memptr_cmp_nocase(), PARSE_OK, RemoveSubscriptionSID(), respond_ok(), Handle_Info::ServiceTable, UPNP_E_SUCCESS, UpnpPrintf(), and http_message_t::uri.
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.
[in] | info | Socket info of the device. |
[in] | request | Subscription request from the control point. |
References memptr::buf, Handle_Info::Callback, Handle_Info::Cookie, create_url_list(), device_handle, error_respond(), FindServiceEventURLPath(), SOCKINFO::foreign_sockaddr, freeSubscriptionList(), GetDeviceHandleInfo(), memptr::length, Handle_Info::MaxSubscriptions, Handle_Info::MaxSubscriptionTimeOut, memptr_cmp_nocase(), PARSE_OK, respond_ok(), Upnp_Subscription_Request::ServiceId, Handle_Info::ServiceTable, Upnp_Subscription_Request::Sid, str_alloc(), Upnp_Subscription_Request::UDN, UPNP_E_OUTOF_MEMORY, UPNP_E_SUCCESS, UPNP_EVENT_SUBSCRIPTION_REQUEST, UpnpPrintf(), http_message_t::uri, URL_LIST::URLs, uuid_create(), and uuid_unpack().
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.
[in] | info | Socket info of the device. |
[in] | request | UNSUBSCRIBE request from the control point. |
References memptr::buf, membuffer::buf, device_handle, error_respond(), FindServiceEventURLPath(), SOCKINFO::foreign_sockaddr, GetDeviceHandleInfo(), GetSubscriptionSID(), memptr::length, membuffer_append(), membuffer_destroy(), membuffer_init(), RemoveSubscriptionSID(), Handle_Info::ServiceTable, and http_message_t::uri.