BLOG | DOCUMENTATION | GITHUB

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

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

 


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.