47 #include "upnpconfig.h"
58 #elif (defined(BSD) && BSD >= 199306)
68 #include <sys/param.h>
76 #define INVALID_SOCKET (SOCKET)(~0)
81 #define UpnpCloseSocket closesocket
84 #define UpnpCloseSocket close
88 #define NUM_HANDLE 200
91 #define MNFT_NAME_SIZE 64
92 #define MODL_NAME_SIZE 32
93 #define SERL_NUMR_SIZE 64
94 #define MODL_DESC_SIZE 64
95 #define UPNP_INFINITE -1
96 #define UPNP_USING_CHUNKED -3
97 #define UPNP_UNTIL_CLOSE -4
119 #define UPNP_E_SUCCESS 0
124 #define UPNP_E_INVALID_HANDLE -100
132 #define UPNP_E_INVALID_PARAM -101
139 #define UPNP_E_OUTOF_HANDLE -102
141 #define UPNP_E_OUTOF_CONTEXT -103
148 #define UPNP_E_OUTOF_MEMORY -104
156 #define UPNP_E_INIT -105
158 #define UPNP_E_BUFFER_TOO_SMALL -106
164 #define UPNP_E_INVALID_DESC -107
173 #define UPNP_E_INVALID_URL -108
175 #define UPNP_E_INVALID_SID -109
177 #define UPNP_E_INVALID_DEVICE -110
185 #define UPNP_E_INVALID_SERVICE -111
193 #define UPNP_E_BAD_RESPONSE -113
195 #define UPNP_E_BAD_REQUEST -114
203 #define UPNP_E_INVALID_ACTION -115
210 #define UPNP_E_FINISH -116
217 #define UPNP_E_INIT_FAILED -117
224 #define UPNP_E_URL_TOO_BIG -118
235 #define UPNP_E_BAD_HTTPMSG -119
243 #define UPNP_E_ALREADY_REGISTERED -120
249 #define UPNP_E_INVALID_INTERFACE -121
258 #define UPNP_E_NETWORK_ERROR -200
268 #define UPNP_E_SOCKET_WRITE -201
278 #define UPNP_E_SOCKET_READ -202
288 #define UPNP_E_SOCKET_BIND -203
298 #define UPNP_E_SOCKET_CONNECT -204
308 #define UPNP_E_OUTOF_SOCKET -205
316 #define UPNP_E_LISTEN -206
324 #define UPNP_E_TIMEDOUT -207
332 #define UPNP_E_SOCKET_ERROR -208
334 #define UPNP_E_FILE_WRITE_ERROR -209
340 #define UPNP_E_CANCELED -210
342 #define UPNP_E_EVENT_PROTOCOL -300
347 #define UPNP_E_SUBSCRIBE_UNACCEPTED -301
352 #define UPNP_E_UNSUBSCRIBE_UNACCEPTED -302
357 #define UPNP_E_NOTIFY_UNACCEPTED -303
365 #define UPNP_E_INVALID_ARGUMENT -501
371 #define UPNP_E_FILE_NOT_FOUND -502
376 #define UPNP_E_FILE_READ_ERROR -503
382 #define UPNP_E_EXT_NOT_XML -504
384 #define UPNP_E_NO_WEB_SERVER -505
385 #define UPNP_E_OUTOF_BOUNDS -506
391 #define UPNP_E_NOT_FOUND -507
397 #define UPNP_E_INTERNAL_ERROR -911
400 #define UPNP_SOAP_E_INVALID_ACTION 401
401 #define UPNP_SOAP_E_INVALID_ARGS 402
402 #define UPNP_SOAP_E_OUT_OF_SYNC 403
403 #define UPNP_SOAP_E_INVALID_VAR 404
404 #define UPNP_SOAP_E_ACTION_FAILED 501
448 enum UpnpOpenFileMode
666 Upnp_EventType EventType,
726 unsigned short DestPort);
768 unsigned short DestPort);
965 Upnp_DescType descriptionType,
968 const char* description,
1022 const char *DescUrl,
1031 const int AddressFamily);
1133 size_t contentLength);
1188 const char *TTarget_constarget_const,
1190 const void *Cookie_const);
1262 const char *ActionURL,
1264 const char *VarName,
1292 const char *ActionURL,
1294 const char *VarName,
1299 const void *Cookie);
1329 const char *ActionURL,
1331 const char *ServiceType,
1368 const char *ActionURL,
1370 const char *ServiceType,
1408 const char *ActionURL,
1410 const char *ServiceType,
1420 const void *Cookie);
1448 const char *ActionURL,
1450 const char *ServiceType,
1463 const void *Cookie);
1518 const char **VarName,
1520 const char **NewVal,
1593 const char **VarName,
1595 const char **NewVal,
1731 const void *Cookie);
1752 int MaxSubscriptions);
1774 int MaxSubscriptionTimeOut);
1810 const char *PublisherUrl,
1871 const char *PublisherUrl,
1878 const void *Cookie);
1972 const void *Cookie);
2106 const char *proxy_str,
2214 unsigned int *length,
2216 unsigned int *total);
2277 const char *contentType,
2403 const char *rootDir);
2417 const char *filename,
2438 const char *filename,
2441 enum UpnpOpenFileMode Mode);
2460 UpnpWebFileHandle fileHnd,
2483 UpnpWebFileHandle fileHnd,
2506 UpnpWebFileHandle fileHnd,
2534 UpnpWebFileHandle fileHnd);
2586 const char *dirName);
2598 const char *dirName);