BLOG | DOCUMENTATION | TRAC

Home --> Documentations --> PJLIB-UTIL Reference

config.h
1 /* $Id: config.h 4589 2013-09-05 03:50:22Z riza $ */
2 /*
3  * Copyright (C) 2008-2011 Teluu Inc. (http://www.teluu.com)
4  * Copyright (C) 2003-2008 Benny Prijono <benny@prijono.org>
5  *
6  * This program is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation; either version 2 of the License, or
9  * (at your option) any later version.
10  *
11  * This program is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with this program; if not, write to the Free Software
18  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19  */
20 #ifndef __PJLIB_UTIL_CONFIG_H__
21 #define __PJLIB_UTIL_CONFIG_H__
22 
23 
36 /* **************************************************************************
37  * DNS CONFIGURATION
38  */
39 
43 #ifndef PJ_DNS_MAX_IP_IN_A_REC
44 # define PJ_DNS_MAX_IP_IN_A_REC 8
45 #endif
46 
47 
51 #ifndef PJ_DNS_SRV_MAX_ADDR
52 # define PJ_DNS_SRV_MAX_ADDR 8
53 #endif
54 
55 
68 #ifndef PJ_DNS_MAX_NAMES_IN_NAMETABLE
69 # define PJ_DNS_MAX_NAMES_IN_NAMETABLE 16
70 #endif
71 
72 
73 /* **************************************************************************
74  * RESOLVER CONFIGURATION
75  */
76 
77 
81 #ifndef PJ_DNS_RESOLVER_MAX_NS
82 # define PJ_DNS_RESOLVER_MAX_NS 16
83 #endif
84 
85 
92 #ifndef PJ_DNS_RESOLVER_QUERY_RETRANSMIT_DELAY
93 # define PJ_DNS_RESOLVER_QUERY_RETRANSMIT_DELAY 2000
94 #endif
95 
96 
103 #ifndef PJ_DNS_RESOLVER_QUERY_RETRANSMIT_COUNT
104 # define PJ_DNS_RESOLVER_QUERY_RETRANSMIT_COUNT 5
105 #endif
106 
107 
117 #ifndef PJ_DNS_RESOLVER_MAX_TTL
118 # define PJ_DNS_RESOLVER_MAX_TTL (5*60)
119 #endif
120 
131 #ifndef PJ_DNS_RESOLVER_INVALID_TTL
132 # define PJ_DNS_RESOLVER_INVALID_TTL 60
133 #endif
134 
148 #ifndef PJ_DNS_RESOLVER_GOOD_NS_TTL
149 # define PJ_DNS_RESOLVER_GOOD_NS_TTL (10*60)
150 #endif
151 
160 #ifndef PJ_DNS_RESOLVER_BAD_NS_TTL
161 # define PJ_DNS_RESOLVER_BAD_NS_TTL (1*60)
162 #endif
163 
164 
171 #ifndef PJ_DNS_RESOLVER_MAX_UDP_SIZE
172 # define PJ_DNS_RESOLVER_MAX_UDP_SIZE 512
173 #endif
174 
175 
184 #ifndef PJ_DNS_RESOLVER_RES_BUF_SIZE
185 # define PJ_DNS_RESOLVER_RES_BUF_SIZE 512
186 #endif
187 
188 
194 #ifndef PJ_DNS_RESOLVER_TMP_BUF_SIZE
195 # define PJ_DNS_RESOLVER_TMP_BUF_SIZE 4000
196 #endif
197 
198 
199 /* **************************************************************************
200  * SCANNER CONFIGURATION
201  */
202 
203 
209 #ifndef PJ_SCANNER_USE_BITWISE
210 # define PJ_SCANNER_USE_BITWISE 1
211 #endif
212 
213 
214 
215 /* **************************************************************************
216  * STUN CLIENT CONFIGURATION
217  */
218 
225 #ifndef PJSTUN_MAX_ATTR
226 # define PJSTUN_MAX_ATTR 16
227 #endif
228 
229 
236 #ifndef PJ_STUN_MAX_ATTR
237 # define PJ_STUN_MAX_ATTR 16
238 #endif
239 
240 
241 /* **************************************************************************
242  * ENCRYPTION
243  */
244 
253 #ifndef PJ_CRC32_HAS_TABLES
254 # define PJ_CRC32_HAS_TABLES 1
255 #endif
256 
257 
258 /* **************************************************************************
259  * HTTP Client configuration
260  */
265 #ifndef PJ_HTTP_DEFAULT_TIMEOUT
266 # define PJ_HTTP_DEFAULT_TIMEOUT (60000)
267 #endif
268 
269 /* **************************************************************************
270  * CLI configuration
271  */
272 
277 #ifndef PJ_CLI_POOL_SIZE
278 # define PJ_CLI_POOL_SIZE 1024
279 #endif
280 
285 #ifndef PJ_CLI_POOL_INC
286 # define PJ_CLI_POOL_INC 512
287 #endif
288 
293 #ifndef PJ_CLI_MAX_CMDBUF
294 # define PJ_CLI_MAX_CMDBUF 512
295 #endif
296 
301 #ifndef PJ_CLI_MAX_ARGS
302 # define PJ_CLI_MAX_ARGS 8
303 #endif
304 
309 #ifndef PJ_CLI_MAX_HINTS
310 # define PJ_CLI_MAX_HINTS 32
311 #endif
312 
317 #ifndef PJ_CLI_MAX_SHORTCUTS
318 # define PJ_CLI_MAX_SHORTCUTS 4
319 #endif
320 
325 #ifndef PJ_CLI_CONSOLE_POOL_SIZE
326 # define PJ_CLI_CONSOLE_POOL_SIZE 256
327 #endif
328 
333 #ifndef PJ_CLI_CONSOLE_POOL_INC
334 # define PJ_CLI_CONSOLE_POOL_INC 256
335 #endif
336 
341 #ifndef PJ_CLI_TELNET_POOL_SIZE
342 # define PJ_CLI_TELNET_POOL_SIZE 1024
343 #endif
344 
349 #ifndef PJ_CLI_TELNET_POOL_INC
350 # define PJ_CLI_TELNET_POOL_INC 512
351 #endif
352 
357 #ifndef PJ_CLI_MAX_CHOICE_VAL
358 # define PJ_CLI_MAX_CHOICE_VAL 16
359 #endif
360 
365 #ifndef PJ_CLI_MAX_CMD_HISTORY
366 # define PJ_CLI_MAX_CMD_HISTORY 16
367 #endif
368 
373 #endif /* __PJLIB_UTIL_CONFIG_H__ */
374 

 


PJLIB-UTIL Open Source, small footprint, and portable asynchronous/caching DNS resolver, text scanner, STUN client, and XML library
Copyright (C) 2006-2009 Teluu Inc.