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 |
| virtualDirList * | pVirtualDirList |
| struct UpnpVirtualDirCallbacks | virtualDirCallback |
| userHTTPHeaderList * | pUserHTTPHeaderList |
| membuffer | gUserHTTPHeaders |
| WebServerState | bWebServerState |
| int | gUpnpSdkShutdown |
| int | gMaxHTTPTimeoutRetries |
Define Documentation
| #define DEFAULT_INTERFACE 1 |
| #define DEFAULT_MAXAGE 1800 |
| #define DEFAULT_SOAP_CONTENT_LENGTH 16000 |
| #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 MAX_INTERFACES 256 |
| #define MAX_SOAP_CONTENT_LENGTH 32000 |
| #define OFF_T_SPRINTF "%l" |
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 |
) |
|
| int getlocalhostname |
( |
char * |
out |
) |
|
Variable Documentation