UPnPsdk 0.1
Universal Plug and Play +, Software Development Kit
 
Loading...
Searching...
No Matches
anonymous_namespace{gena_ctrlpt.cpp} Namespace Reference

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.
 

Function Documentation

◆ free_subscribe_arg()

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.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GenaAutoRenewSubscription()

void anonymous_namespace{gena_ctrlpt.cpp}::GenaAutoRenewSubscription ( void *  input)

This is a thread function to send the renewal just before the subscription times out.

Parameters
[in]inputThread data(job_arg *) needed to send the renewal.

Definition at line 75 of file gena_ctrlpt.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ScheduleGenaAutoRenew()

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.

Returns
GENA_E_SUCCESS if successful, otherwise returns the appropriate error code.
Parameters
[in]client_handleHandle that also contains the subscription list.
[in]TimeOutThe time out value of the subscription.
[in]subSubscription being renewed.

Definition at line 135 of file gena_ctrlpt.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ gena_unsubscribe()

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.

Returns
0 if successful, otherwise returns the appropriate error code.
Parameters
[in]urlEvent URL of the service.
[in]sidThe subcription ID.
[out]responseThe UNSUBCRIBE response from the device.

Definition at line 207 of file gena_ctrlpt.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ gena_subscribe()

int anonymous_namespace{gena_ctrlpt.cpp}::gena_subscribe ( const UpnpString url,
int *  timeout,
const UpnpString renewal_sid,
UpnpString sid 
)

Subscribes or renew subscription.

Returns
0 if successful, otherwise returns the appropriate error code.
Parameters
[in]urlURL of service to subscribe.
[in,out]timeoutSubscription time desired (in secs).
[in]renewal_sidfor renewal, this contains a currently held subscription SID. For first time subscription, this must be NULL.
[out]sidSID returned by the subscription or renew msg.

Definition at line 264 of file gena_ctrlpt.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Variable Documentation

◆ ctrlpntSubscribe_mutex

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.