Changeset 1090 for pjproject/trunk/pjnath/include/pjnath/stun_setting.h
- Timestamp:
- Mar 21, 2007 9:12:22 AM (17 years ago)
- File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjnath/include/pjnath/stun_setting.h
r1089 r1090 33 33 /* **************************************************************************/ 34 34 /** 35 * @defgroup PJNATH_STUN_ ENDPOINT STUN Endpoint36 * @brief Management of incoming and outgoing STUN transactions.35 * @defgroup PJNATH_STUN_SETTING STUN Settings 36 * @brief STUN settings. 37 37 * @ingroup PJNATH_STUN 38 38 * @{ … … 40 40 41 41 /** 42 * Opaque declaration for STUN endpoint. STUN endpoint manages client and 43 * server STUN transactions, and it needs to be initialized before application 44 * can send or receive STUN messages. 42 * Opaque declaration for STUN setting. 45 43 */ 46 44 typedef struct pj_stun_config … … 92 90 93 91 /** 94 * Create a STUN endpoint instance.92 * Initialize STUN config. 95 93 */ 96 PJ_DECL(pj_status_t) pj_stun_config_create(pj_pool_factory *factory, 97 unsigned options, 98 pj_ioqueue_t *ioqueue, 99 pj_timer_heap_t *timer_heap, 100 pj_stun_config **p_endpt); 94 PJ_INLINE(void) pj_stun_config_init(pj_stun_config *cfg, 95 pj_pool_factory *factory, 96 unsigned options, 97 pj_ioqueue_t *ioqueue, 98 pj_timer_heap_t *timer_heap) 99 { 100 pj_bzero(cfg, sizeof(*cfg)); 101 101 102 /** 103 * Destroy STUN endpoint instance. 104 */ 105 PJ_DECL(pj_status_t) pj_stun_config_destroy(pj_stun_config *endpt); 102 cfg->pf = factory; 103 cfg->options = options; 104 cfg->ioqueue = ioqueue; 105 cfg->timer_heap = timer_heap; 106 cfg->rto_msec = PJ_STUN_RTO_VALUE; 107 cfg->res_cache_msec = 10000; 108 } 106 109 107 110
Note: See TracChangeset
for help on using the changeset viewer.