upnpapi.h File Reference

#include "upnp.h"
#include "client_table.h"
#include "membuffer.h"

Go to the source code of this file.

Data Structures

struct  Handle_Info
struct  UpnpNonblockParam

Defines

#define MAX_INTERFACES   256
#define DEFAULT_INTERFACE   1
#define DEV_LIMIT   200
#define NUM_HANDLE   200
#define DEFAULT_MX   5
#define DEFAULT_MAXAGE   1800
#define DEFAULT_SOAP_CONTENT_LENGTH   16000
#define MAX_SOAP_CONTENT_LENGTH   32000
#define OFF_T_SPRINTF   "%l"
#define UPNP_TIMEOUT   30
#define HandleLock()   DBGONLY(UpnpPrintf(UPNP_INFO,API,__FILE__,__LINE__,"Trying Lock")); ithread_mutex_lock(&GlobalHndMutex); DBGONLY(UpnpPrintf(UPNP_INFO,API,__FILE__,__LINE__,"LOCK"));
#define HandleUnlock()   DBGONLY(UpnpPrintf(UPNP_INFO,API,__FILE__,__LINE__,"Trying Unlock")); ithread_mutex_unlock(&GlobalHndMutex); DBGONLY(UpnpPrintf(UPNP_INFO,API,__FILE__,__LINE__,"Unlock"));
#define E_HTTP_SYNTAX   -6

Enumerations

enum  Upnp_Handle_Type { HND_INVALID = -1, HND_CLIENT, HND_DEVICE }
enum  UpnpFunName {
  SUBSCRIBE, UNSUBSCRIBE, DK_NOTIFY, QUERY,
  ACTION, STATUS, DEVDESCRIPTION, SERVDESCRIPTION,
  MINI, RENEW
}
enum  WebServerState { WEB_SERVER_DISABLED, WEB_SERVER_ENABLED }

Functions

Upnp_Handle_Type GetHandleInfo (int Hnd, struct Handle_Info **HndInfo)
Upnp_Handle_Type GetClientHandleInfo (int *client_handle_out, struct Handle_Info **HndInfo)
Upnp_Handle_Type GetDeviceHandleInfo (int *device_handle_out, struct Handle_Info **HndInfo)
void InitHandleList ()
int GetFreeHandle ()
int FreeHandle (int Handle)
void UpnpThreadDistribution (struct UpnpNonblockParam *Param)
void AutoAdvertise (void *input)
int getlocalhostname (char *out)

Variables

off_t g_maxContentLength
ithread_mutex_t GlobalHndMutex
char LOCAL_HOST [LINE_SIZE]
unsigned short LOCAL_PORT
TimerThread gTimerThread
ThreadPool gRecvThreadPool
ThreadPool gSendThreadPool
virtualDirListpVirtualDirList
struct UpnpVirtualDirCallbacks virtualDirCallback
userHTTPHeaderListpUserHTTPHeaderList
membuffer gUserHTTPHeaders
WebServerState bWebServerState
int gUpnpSdkShutdown
int gMaxHTTPTimeoutRetries

Define Documentation

#define DEFAULT_INTERFACE   1

Definition at line 69 of file upnpapi.h.

#define DEFAULT_MAXAGE   1800

Definition at line 77 of file upnpapi.h.

#define DEFAULT_MX   5

Definition at line 75 of file upnpapi.h.

#define DEFAULT_SOAP_CONTENT_LENGTH   16000

Definition at line 79 of file upnpapi.h.

#define DEV_LIMIT   200

Definition at line 71 of file upnpapi.h.

#define E_HTTP_SYNTAX   -6

Definition at line 184 of file upnpapi.h.

 
#define HandleLock (  )     DBGONLY(UpnpPrintf(UPNP_INFO,API,__FILE__,__LINE__,"Trying Lock")); ithread_mutex_lock(&GlobalHndMutex); DBGONLY(UpnpPrintf(UPNP_INFO,API,__FILE__,__LINE__,"LOCK"));

Definition at line 128 of file upnpapi.h.

 
#define HandleUnlock (  )     DBGONLY(UpnpPrintf(UPNP_INFO,API,__FILE__,__LINE__,"Trying Unlock")); ithread_mutex_unlock(&GlobalHndMutex); DBGONLY(UpnpPrintf(UPNP_INFO,API,__FILE__,__LINE__,"Unlock"));

Definition at line 129 of file upnpapi.h.

#define MAX_INTERFACES   256

Definition at line 67 of file upnpapi.h.

#define MAX_SOAP_CONTENT_LENGTH   32000

Definition at line 80 of file upnpapi.h.

#define NUM_HANDLE   200

Definition at line 73 of file upnpapi.h.

#define OFF_T_SPRINTF   "%l"

Definition at line 86 of file upnpapi.h.

#define UPNP_TIMEOUT   30

Definition at line 92 of file upnpapi.h.


Enumeration Type Documentation

Enumerator:
HND_INVALID 
HND_CLIENT 
HND_DEVICE 

Definition at line 94 of file upnpapi.h.

Enumerator:
SUBSCRIBE 
UNSUBSCRIBE 
DK_NOTIFY 
QUERY 
ACTION 
STATUS 
DEVDESCRIPTION 
SERVDESCRIPTION 
MINI 
RENEW 

Definition at line 145 of file upnpapi.h.

Enumerator:
WEB_SERVER_DISABLED 
WEB_SERVER_ENABLED 

Definition at line 182 of file upnpapi.h.


Function Documentation

void AutoAdvertise ( void *  input  ) 
int FreeHandle ( int  Handle  ) 
Upnp_Handle_Type GetClientHandleInfo ( int *  client_handle_out,
struct Handle_Info **  HndInfo 
)
Upnp_Handle_Type GetDeviceHandleInfo ( int *  device_handle_out,
struct Handle_Info **  HndInfo 
)
int GetFreeHandle (  ) 
Upnp_Handle_Type GetHandleInfo ( int  Hnd,
struct Handle_Info **  HndInfo 
)
int getlocalhostname ( char *  out  ) 
void InitHandleList (  ) 
void UpnpThreadDistribution ( struct UpnpNonblockParam Param  ) 

Variable Documentation

Definition at line 205 of file upnpapi.h.

Definition at line 203 of file upnpapi.h.

Definition at line 198 of file upnpapi.h.

char LOCAL_HOST[LINE_SIZE]
unsigned short LOCAL_PORT

Definition at line 196 of file upnpapi.h.

Definition at line 195 of file upnpapi.h.


Generated on Fri Mar 26 20:16:55 2010 for MediaTomb by  doxygen 1.6.1