Changeset 331 for pjproject/trunk
- Timestamp:
- Mar 18, 2006 12:28:03 PM (19 years ago)
- Location:
- pjproject/trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjlib/include/pj/config.h
r182 r331 103 103 # undef PJ_ENABLE_EXTRA_CHECK 104 104 # undef PJ_EXCEPTION_USE_WIN32_SEH 105 # undef PJ_HAS_ERROR_STRING 105 106 #endif 106 107 … … 246 247 * be set to this value). 247 248 * 248 * Default: 256 249 * Default: 256 (64 for WinCE) 249 250 */ 250 251 #ifndef PJ_IOQUEUE_MAX_HANDLES 251 # define PJ_IOQUEUE_MAX_HANDLES (256) 252 # if defined(PJ_WIN32_WINCE) && PJ_WIN32_WINCE!=0 253 # define PJ_IOQUEUE_MAX_HANDLES (64) 254 # else 255 # define PJ_IOQUEUE_MAX_HANDLES (256) 256 # endif 252 257 #endif 253 258 … … 343 348 #ifndef PJ_TIMESTAMP_USE_RDTSC 344 349 # define PJ_TIMESTAMP_USE_RDTSC 0 350 #endif 351 352 /** 353 * Include error message string in the library (pj_strerror()). 354 * This is very much desirable! 355 * 356 * Default: 1 357 */ 358 #ifndef PJ_HAS_ERROR_STRING 359 # define PJ_HAS_ERROR_STRING 1 345 360 #endif 346 361 -
pjproject/trunk/pjlib/src/pj/except.c
r68 r331 134 134 PJ_ASSERT_RETURN(last_exception_id < PJ_MAX_EXCEPTION_ID-1, PJ_ETOOMANY); 135 135 136 *id = last_exception_id++ 136 *id = last_exception_id++; 137 137 return PJ_SUCCESS; 138 138 } -
pjproject/trunk/pjsip/include/pjsip/sip_config.h
r197 r331 22 22 #include <pj/config.h> 23 23 24 /** 25 * Specify maximum transaction count in transaction hash table. 26 * Default value is 16*1024 27 */ 28 #ifndef PJSIP_MAX_TSX_COUNT 29 # define PJSIP_MAX_TSX_COUNT (16*1024) 30 #endif 31 32 /** 33 * Specify maximum number of dialogs in the dialog hash table. 34 * Default value is 16*1024. 35 */ 36 #ifndef PJSIP_MAX_DIALOG_COUNT 37 # define PJSIP_MAX_DIALOG_COUNT (16*1024) 38 #endif 39 40 41 /** 42 * Specify maximum number of transports. 43 * Default value is equal to maximum number of handles in ioqueue. 44 * See also PJSIP_TPMGR_HTABLE_SIZE. 45 */ 46 #ifndef PJSIP_MAX_TRANSPORTS 47 # define PJSIP_MAX_TRANSPORTS (PJ_IOQUEUE_MAX_HANDLES) 48 #endif 49 50 51 /** 52 * Transport manager hash table size (must be 2^n-1). 53 * See also PJSIP_MAX_TRANSPORTS 54 */ 55 #ifndef PJSIP_TPMGR_HTABLE_SIZE 56 # define PJSIP_TPMGR_HTABLE_SIZE 31 57 #endif 58 59 60 /** 61 * Specify maximum URL size. 62 * This constant is used mainly when printing the URL for logging purpose 63 * only. 64 */ 65 #ifndef PJSIP_MAX_URL_SIZE 66 # define PJSIP_MAX_URL_SIZE 256 67 #endif 68 69 70 /** 71 * Specify maximum number of modules. 72 * This mainly affects the size of mod_data array in various components. 73 */ 74 #ifndef PJSIP_MAX_MODULE 75 # define PJSIP_MAX_MODULE 16 76 #endif 77 78 79 24 80 /* Endpoint. */ 25 81 #define PJSIP_MAX_TIMER_COUNT (2*PJSIP_MAX_TSX_COUNT + 2*PJSIP_MAX_DIALOG_COUNT) 26 #define PJSIP_POOL_LEN_ENDPT ( 2048+64*PJSIP_MAX_TSX_COUNT)27 #define PJSIP_POOL_INC_ENDPT ( 1024)82 #define PJSIP_POOL_LEN_ENDPT (4000) 83 #define PJSIP_POOL_INC_ENDPT (4000) 28 84 29 85 /* Transport related constants. */ 30 #define PJSIP_MAX_TRANSPORTS (PJ_IOQUEUE_MAX_HANDLES) 86 31 87 #define PJSIP_MAX_PKT_LEN 1500 32 88 #define PJSIP_POOL_RDATA_LEN 4000 … … 36 92 #define PJSIP_POOL_LEN_TDATA 4000 37 93 #define PJSIP_POOL_INC_TDATA 4000 38 #define PJSIP_POOL_LEN_UA (64 + 32*PJSIP_MAX_DIALOG_COUNT)39 #define PJSIP_POOL_INC_UA 094 #define PJSIP_POOL_LEN_UA 4000 95 #define PJSIP_POOL_INC_UA 4000 40 96 #define PJSIP_TRANSPORT_CLOSE_TIMEOUT 30 41 97 #define PJSIP_MAX_TRANSPORT_USAGE 16 … … 49 105 #define PJSIP_POOL_TSX_LAYER_LEN 4000 50 106 #define PJSIP_POOL_TSX_LAYER_INC 4000 51 #define PJSIP_MAX_TSX_COUNT (16*1024)52 107 #define PJSIP_POOL_TSX_LEN 1536 //768 53 108 #define PJSIP_POOL_TSX_INC 256 … … 62 117 #define PJSIP_MAX_TAG_LEN PJ_GUID_STRING_LENGTH 63 118 #define PJSIP_MAX_BRANCH_LEN (PJSIP_RFC3261_BRANCH_LEN + PJ_GUID_STRING_LENGTH) 64 #define PJSIP_MAX_URL_SIZE 25665 119 #define PJSIP_MAX_HNAME_LEN 64 66 120 67 121 /* Dialog related constants. */ 68 #define PJSIP_MAX_DIALOG_COUNT (16*1024)69 122 #define PJSIP_POOL_LEN_DIALOG 1200 70 123 #define PJSIP_POOL_INC_DIALOG 512 71 124 72 /* Transport manager hash table size (must be 2^n-1). */73 #define PJSIP_TPMGR_HTABLE_SIZE 3174 75 125 /* Transport idle timeout before it's destroyed. */ 76 126 #define PJSIP_TRANSPORT_IDLE_TIME 30 … … 78 128 /* Max entries to process in timer heap per poll. */ 79 129 #define PJSIP_MAX_TIMED_OUT_ENTRIES 10 80 81 /* Module related constants. */82 #define PJSIP_MAX_MODULE 1683 130 84 131 /* Maximum header types. */
Note: See TracChangeset
for help on using the changeset viewer.