client_table.h File Reference

#include "ClientSubscription.h"
#include "UpnpString.h"
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <sys/param.h>
#include "UpnpGlobal.h"
#include "UpnpInet.h"
#include <ctype.h>
#include <errno.h>
#include <fcntl.h>
#include <string.h>
#include <sys/types.h>
#include <arpa/inet.h>
#include <netdb.h>
#include "ixml.h"
#include "upnp.h"
#include "upnpdebug.h"
#include "uri.h"
#include "TimerThread.h"
Include dependency graph for client_table.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void free_client_subscription (ClientSubscription *sub)
 Free memory allocated for client subscription data.
void freeClientSubList (ClientSubscription *list)
 Free the client subscription table.
void RemoveClientSubClientSID (ClientSubscription **head, const UpnpString *sid)
 Remove the client subscription matching the subscritpion id represented by the const Upnp_SID sid parameter from the table and update the table.
ClientSubscription * GetClientSubClientSID (ClientSubscription *head, const UpnpString *sid)
 Return the client subscription from the client table that matches const Upnp_SID sid subscrition id value.
ClientSubscription * GetClientSubActualSID (ClientSubscription *head, token *sid)
 Returns the client subscription from the client subscription table that has the matching token *sid buffer value.

Variables

TimerThread gTimerThread

Detailed Description


Function Documentation

void free_client_subscription ( ClientSubscription *  sub  ) 

Free memory allocated for client subscription data.

Remove timer thread associated with this subscription event.

Parameters:
[in] sub Client subscription to be freed.

References free_upnp_timeout(), gTimerThread, and TimerThreadRemove().

void freeClientSubList ( ClientSubscription *  list  ) 

Free the client subscription table.

Parameters:
[in] list Client subscription list to be freed.
ClientSubscription* GetClientSubActualSID ( ClientSubscription *  head,
token sid 
)

Returns the client subscription from the client subscription table that has the matching token *sid buffer value.

Returns:
The matching subscription.
Parameters:
[in] head Head of the subscription list.
[in] sid Subscription ID to be mactched.
ClientSubscription* GetClientSubClientSID ( ClientSubscription *  head,
const UpnpString sid 
)

Return the client subscription from the client table that matches const Upnp_SID sid subscrition id value.

Returns:
The matching subscription.
Parameters:
[in] head Head of the subscription list.
[in] sid Subscription ID to be mactched.

References UpnpString_get_String().

void RemoveClientSubClientSID ( ClientSubscription **  head,
const UpnpString sid 
)

Remove the client subscription matching the subscritpion id represented by the const Upnp_SID sid parameter from the table and update the table.

Parameters:
[in] head Head of the subscription list.
[in] sid Subscription ID to be mactched.

References UpnpString_get_String().


Variable Documentation

Global timer thread.

Generated on Fri May 21 00:34:12 2010 for libUPnP by  doxygen 1.6.3