Functions | |
void | free_subscribe_arg (job_arg *arg) |
Free memory associated with job's argument. | |
void | GenaAutoRenewSubscription (void *input) |
This is a thread function to send the renewal just before the subscription times out. | |
int | ScheduleGenaAutoRenew (int client_handle, int TimeOut, GenlibClientSubscription *sub) |
Schedules a job to renew the subscription just before time out. | |
int | gena_unsubscribe (const UpnpString *url, const UpnpString *sid, http_parser_t *response) |
Sends the UNSUBCRIBE gena request and recieves the response from the device and returns it as a parameter. | |
int | gena_subscribe (const UpnpString *url, int *timeout, const UpnpString *renewal_sid, UpnpString *sid) |
Subscribes or renew subscription. | |
Variables | |
pthread_mutex_t | ctrlpntSubscribe_mutex {} |
Mutex to synchronize the subscription handling at the control point side. | |
void anonymous_namespace{gena_ctrlpt.cpp}::free_subscribe_arg | ( | job_arg * | arg | ) |
Free memory associated with job's argument.
Definition at line 62 of file gena_ctrlpt.cpp.
void anonymous_namespace{gena_ctrlpt.cpp}::GenaAutoRenewSubscription | ( | void * | input | ) |
This is a thread function to send the renewal just before the subscription times out.
[in] | input | Thread data(job_arg *) needed to send the renewal. |
Definition at line 75 of file gena_ctrlpt.cpp.
int anonymous_namespace{gena_ctrlpt.cpp}::ScheduleGenaAutoRenew | ( | int | client_handle, |
int | TimeOut, | ||
GenlibClientSubscription * | sub | ||
) |
Schedules a job to renew the subscription just before time out.
[in] | client_handle | Handle that also contains the subscription list. |
[in] | TimeOut | The time out value of the subscription. |
[in] | sub | Subscription being renewed. |
Definition at line 135 of file gena_ctrlpt.cpp.
int anonymous_namespace{gena_ctrlpt.cpp}::gena_unsubscribe | ( | const UpnpString * | url, |
const UpnpString * | sid, | ||
http_parser_t * | response | ||
) |
Sends the UNSUBCRIBE gena request and recieves the response from the device and returns it as a parameter.
[in] | url | Event URL of the service. |
[in] | sid | The subcription ID. |
[out] | response | The UNSUBCRIBE response from the device. |
Definition at line 207 of file gena_ctrlpt.cpp.
int anonymous_namespace{gena_ctrlpt.cpp}::gena_subscribe | ( | const UpnpString * | url, |
int * | timeout, | ||
const UpnpString * | renewal_sid, | ||
UpnpString * | sid | ||
) |
Subscribes or renew subscription.
[in] | url | URL of service to subscribe. |
[in,out] | timeout | Subscription time desired (in secs). |
[in] | renewal_sid | for renewal, this contains a currently held subscription SID. For first time subscription, this must be NULL. |
[out] | sid | SID returned by the subscription or renew msg. |
Definition at line 264 of file gena_ctrlpt.cpp.
pthread_mutex_t anonymous_namespace{gena_ctrlpt.cpp}::ctrlpntSubscribe_mutex {} |
Mutex to synchronize the subscription handling at the control point side.
Definition at line 57 of file gena_ctrlpt.cpp.