UPnPsdk 0.1
Universal Plug and Play +, Software Development Kit
 
Loading...
Searching...
No Matches
config.hpp
Go to the documentation of this file.
1#ifndef COMPA_INTERNAL_CONFIG_HPP
2#define COMPA_INTERNAL_CONFIG_HPP
3/**************************************************************************
4 *
5 * Copyright (c) 2000-2003 Intel Corporation
6 * All rights reserved.
7 * Copyright (c) 2012 France Telecom All rights reserved.
8 * Copyright (C) 2022+ GPL 3 and higher by Ingo Höft, <Ingo@Hoeft-online.de>
9 * Redistribution only with this Copyright remark. Last modified: 2024-03-03
10 *
11 * Redistribution and use in source and binary forms, with or without
12 * modification, are permitted provided that the following conditions are met:
13 *
14 * - Redistributions of source code must retain the above copyright notice,
15 * this list of conditions and the following disclaimer.
16 * - Redistributions in binary form must reproduce the above copyright notice,
17 * this list of conditions and the following disclaimer in the documentation
18 * and/or other materials provided with the distribution.
19 * - Neither name of Intel Corporation nor the names of its contributors
20 * may be used to endorse or promote products derived from this software
21 * without specific prior written permission.
22 *
23 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
24 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
25 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
26 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL INTEL OR
27 * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
28 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
29 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
30 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
31 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
32 * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
33 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
34 *
35 **************************************************************************/
58#define THREAD_IDLE_TIME 5000
59
67#define JOBS_PER_THREAD 10
68
77#define MIN_THREADS 2
78
88#define MAX_THREADS 12
89
100#define THREAD_STACK_SIZE (size_t)0
101
107#define MAX_JOBS_TOTAL 100
108
115#define MAX_SUBSCRIPTION_QUEUED_EVENTS 10
116
127#define MAX_SUBSCRIPTION_EVENT_AGE 30
128
135#define DEFAULT_SOAP_CONTENT_LENGTH 16000
136
142#define NUM_SSDP_COPY 2
143
149#define SSDP_PAUSE 100u
150
155#define WEB_SERVER_BUF_SIZE (size_t)(1024 * 1024)
156
164#define WEB_SERVER_CONTENT_LANGUAGE ""
165
174#define AUTO_RENEW_TIME 10
175
183#define CP_MINIMUM_SUBSCRIPTION_TIME (AUTO_RENEW_TIME + 5)
184
190#define MAX_SEARCH_TIME 80
191
197#define MIN_SEARCH_TIME 2
198
204#define AUTO_ADVERTISEMENT_TIME 30
205
214#define SSDP_PACKET_DISTRIBUTE 1
215
229#define GENA_NOTIFICATION_SENDING_TIMEOUT HTTP_DEFAULT_TIMEOUT
230
246#define GENA_NOTIFICATION_ANSWERING_TIMEOUT HTTP_DEFAULT_TIMEOUT
247
249// No need for documentation because these settings have no effect.
260
263#ifdef USE_JNI
264#define EXCLUDE_JNI 0
265#else
266#define EXCLUDE_JNI 1
267#endif
270
279#define DEBUG_ALL 1
280#define DEBUG_SSDP 0
281#define DEBUG_SOAP 0
282#define DEBUG_GENA 0
283#define DEBUG_TPOOL 0
284#define DEBUG_MSERV 0
285#define DEBUG_DOM 0
286#define DEBUG_HTTP 0
287#define DEBUG_API 0
289
291
292#endif /* COMPA_INTERNAL_CONFIG_HPP */