Ignore:
Timestamp:
Jul 11, 2006 9:53:27 AM (18 years ago)
Author:
bennylp
Message:

Added PJSIP_MAX_NET_EVENTS configuration to pjsip

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip/include/pjsip/sip_config.h

    r583 r602  
    147147#endif 
    148148 
     149 
     150/** 
     151 * This macro controls maximum numbers of ioqueue events to be processed 
     152 * in a single pjsip_endpt_handle_events() poll. When PJSIP detects that 
     153 * there are probably more events available from the network and total 
     154 * events so far is less than this value, PJSIP will call pj_ioqueue_poll() 
     155 * again to get more events. 
     156 * 
     157 * Value 1 works best for ioqueue with select() back-end, while for IOCP it is 
     158 * probably best to set this value equal to PJSIP_MAX_TIMED_OUT_ENTRIES 
     159 * since IOCP only processes one event at a time. 
     160 * 
     161 * Default: 1 
     162 */ 
     163#ifndef PJSIP_MAX_NET_EVENTS 
     164#   define PJSIP_MAX_NET_EVENTS         1 
     165#endif 
     166 
     167 
     168/** 
     169 * Max entries to process in timer heap per poll.  
     170 *  
     171 * Default: 10 
     172 */ 
     173#ifndef PJSIP_MAX_TIMED_OUT_ENTRIES 
     174#   define PJSIP_MAX_TIMED_OUT_ENTRIES  10 
     175#endif 
     176 
     177 
     178/** 
     179 * Idle timeout interval to be applied to transports with no usage 
     180 * before the transport is destroyed. Value is in seconds. 
     181 * 
     182 * Default: 60 
     183 */ 
     184#ifndef PJSIP_TRANSPORT_IDLE_TIME 
     185#   define PJSIP_TRANSPORT_IDLE_TIME    60 
     186#endif 
     187 
     188 
     189/** 
     190 * Maximum number of usages for a transport before a new transport is 
     191 * created. This only applies for ephemeral transports such as TCP. 
     192 * 
     193 * Currently this is not used. 
     194 *  
     195 * Default: -1 
     196 */ 
     197#ifndef PJSIP_MAX_TRANSPORT_USAGE 
     198#   define PJSIP_MAX_TRANSPORT_USAGE    ((unsigned)-1) 
     199#endif 
    149200 
    150201 
     
    164215#define PJSIP_POOL_LEN_UA               4000 
    165216#define PJSIP_POOL_INC_UA               4000 
    166 #define PJSIP_TRANSPORT_CLOSE_TIMEOUT   30 
    167 #define PJSIP_MAX_TRANSPORT_USAGE       16 
    168217 
    169218#define PJSIP_MAX_FORWARDS_VALUE        70 
     
    193242#define PJSIP_POOL_INC_DIALOG           512 
    194243 
    195 /* Transport idle timeout before it's destroyed. */ 
    196 #define PJSIP_TRANSPORT_IDLE_TIME       30 
    197  
    198 /* Max entries to process in timer heap per poll. */ 
    199 #define PJSIP_MAX_TIMED_OUT_ENTRIES     10 
    200  
    201244/* Maximum header types. */ 
    202245#define PJSIP_MAX_HEADER_TYPES          64 
Note: See TracChangeset for help on using the changeset viewer.