Home
last modified time | relevance | path

Searched refs:stun_cfg (Results 1 – 25 of 28) sorted by relevance

12

/dports/net/pjsip/pjproject-2.11.1/pjnath/src/pjnath-test/
H A Dturn_sock_test.c35 pj_stun_config *stun_cfg; member
119 sess->stun_cfg = stun_cfg; in create_test_session()
323 capture_pjlib_state(stun_cfg, &pjlib_state); in state_progression_test()
338 poll_events(stun_cfg, 10, PJ_FALSE); in state_progression_test()
369 poll_events(stun_cfg, 2000, PJ_FALSE); in state_progression_test()
410 poll_events(stun_cfg, 500, PJ_FALSE); in state_progression_test()
481 poll_events(stun_cfg, 100, PJ_FALSE); in destroy_test()
496 poll_events(stun_cfg, 1, PJ_FALSE); in destroy_test()
519 poll_events(stun_cfg, 1000, PJ_FALSE); in destroy_test()
538 pj_stun_config stun_cfg; in turn_sock_test() local
[all …]
H A Dtest.c73 pj_stun_config_init(stun_cfg, mem, 0, ioqueue, timer_heap); in create_stun_config()
78 void destroy_stun_config(pj_stun_config *stun_cfg) in destroy_stun_config() argument
80 if (stun_cfg->timer_heap) { in destroy_stun_config()
81 pj_timer_heap_destroy(stun_cfg->timer_heap); in destroy_stun_config()
82 stun_cfg->timer_heap = NULL; in destroy_stun_config()
84 if (stun_cfg->ioqueue) { in destroy_stun_config()
85 pj_ioqueue_destroy(stun_cfg->ioqueue); in destroy_stun_config()
86 stun_cfg->ioqueue = NULL; in destroy_stun_config()
90 void poll_events(pj_stun_config *stun_cfg, unsigned msec, in poll_events() argument
105 c = pj_timer_heap_poll( stun_cfg->timer_heap, NULL ); in poll_events()
[all …]
H A Dice_test.c105 pj_stun_config *stun_cfg; member
251 pj_memcpy(&ice_cfg.stun_cfg, test_sess->stun_cfg, sizeof(pj_stun_config)); in create_ice_strans()
299 sess->stun_cfg = stun_cfg; in create_sess()
610 pj_stun_config *stun_cfg = sess->stun_cfg; in worker_thread_proc() local
622 pj_stun_config *stun_cfg, in perform_test2() argument
907 pj_stun_config stun_cfg; in ice_test() local
982 &stun_cfg, cfg.server_flag, in ice_test()
1243 pj_stun_config stun_cfg; in ice_conc_test() local
1396 pj_stun_config *stun_cfg, in perform_trickle_test() argument
1534 pj_stun_config stun_cfg; in trickle_ice_test() local
[all …]
H A Dconcur_test.c33 pj_stun_config stun_cfg; member
65 pool = pj_pool_create(test_sess->stun_cfg.pf, "server", 512, 512, NULL); in server_thread_proc()
148 pj_timer_heap_poll(test_sess->stun_cfg.timer_heap, NULL); in worker_thread_proc()
149 pj_ioqueue_poll(test_sess->stun_cfg.ioqueue, &timeout); in worker_thread_proc()
186 status = pj_stun_sock_create(&test_sess->stun_cfg, name, pj_AF_INET(), in stun_destroy_test_session()
247 pj_stun_config_init(&test_sess.stun_cfg, &cp.factory, 0, NULL, NULL); in stun_destroy_test()
249 status = pj_timer_heap_create(pool, 1023, &test_sess.stun_cfg.timer_heap); in stun_destroy_test()
255 pj_timer_heap_set_lock(test_sess.stun_cfg.timer_heap, test_sess.lock, PJ_TRUE); in stun_destroy_test()
332 ice_one_conc_test(&test_sess.stun_cfg, PJ_FALSE); in stun_destroy_test()
354 pj_ioqueue_destroy(test_sess.stun_cfg.ioqueue); in stun_destroy_test()
[all …]
H A Dtest.h66 int ice_one_conc_test(pj_stun_config *stun_cfg, int err_quit);
72 pj_status_t create_stun_config(pj_pool_t *pool, pj_stun_config *stun_cfg);
73 void destroy_stun_config(pj_stun_config *stun_cfg);
75 void poll_events(pj_stun_config *stun_cfg, unsigned msec,
H A Dserver.c83 pj_status_t create_test_server(pj_stun_config *stun_cfg, in create_test_server() argument
95 PJ_ASSERT_RETURN(stun_cfg && domain && p_test_srv, PJ_EINVAL); in create_test_server()
113 test_srv->stun_cfg = stun_cfg; in create_test_server()
122 status = pj_dns_server_create(mem, test_srv->stun_cfg->ioqueue, in create_test_server()
161 test_srv->stun_cfg->ioqueue, in create_test_server()
221 test_srv->stun_cfg->ioqueue, in create_test_server()
265 test_srv->stun_cfg->ioqueue, in create_test_server()
289 ssl_param.ioqueue = test_srv->stun_cfg->ioqueue; in create_test_server()
290 ssl_param.timer_heap = test_srv->stun_cfg->timer_heap; in create_test_server()
727 test_srv->stun_cfg->ioqueue, in turn_on_data_read()
[all …]
H A Dstun_sock_test.c836 capture_pjlib_state(&stun_cfg, &pjlib_state); \
839 ret = check_pjlib_state(&stun_cfg, &pjlib_state); \
846 pj_stun_config stun_cfg; in stun_sock_test() local
869 pj_stun_config_init(&stun_cfg, mem, 0, ioqueue, timer_heap); in stun_sock_test()
871 DO_TEST(timeout_test(&stun_cfg, PJ_FALSE, USE_IPV6)); in stun_sock_test()
872 DO_TEST(timeout_test(&stun_cfg, PJ_TRUE, USE_IPV6)); in stun_sock_test()
874 DO_TEST(missing_attr_test(&stun_cfg, PJ_FALSE, USE_IPV6)); in stun_sock_test()
875 DO_TEST(missing_attr_test(&stun_cfg, PJ_TRUE, USE_IPV6)); in stun_sock_test()
877 DO_TEST(keep_alive_test(&stun_cfg, USE_IPV6)); in stun_sock_test()
H A Dserver.h81 pj_stun_config *stun_cfg; member
115 pj_status_t create_test_server(pj_stun_config *stun_cfg,
H A Dsess_auth.c31 static pj_stun_config stun_cfg; variable
251 status = pj_stun_session_create(&stun_cfg, "server", &sess_cb, PJ_FALSE, NULL, &server->sess); in create_std_server()
392 pj_timer_heap_poll(stun_cfg.timer_heap, NULL); in client_thread()
492 status = pj_stun_session_create(&stun_cfg, "client", &sess_cb, PJ_FALSE, NULL, &client->sess); in run_client_test()
793 pj_stun_config_init(&stun_cfg, mem, 0, NULL, NULL); in sess_auth_test()
797 if (pj_timer_heap_create(pool, 20, &stun_cfg.timer_heap)) { in sess_auth_test()
1188 pj_timer_heap_destroy(stun_cfg.timer_heap); in sess_auth_test()
/dports/net/pjsip/pjproject-2.11.1/pjnath/src/pjnath/
H A Dnat_detect.c211 pj_stun_config *stun_cfg, in pj_stun_detect_nat_type() argument
220 return pj_stun_detect_nat_type2(&srv, stun_cfg, user_data, cb); in pj_stun_detect_nat_type()
224 pj_stun_config *stun_cfg, in pj_stun_detect_nat_type2() argument
236 PJ_ASSERT_RETURN(server && stun_cfg, PJ_EINVAL); in pj_stun_detect_nat_type2()
237 PJ_ASSERT_RETURN(stun_cfg->pf && stun_cfg->ioqueue && stun_cfg->timer_heap, in pj_stun_detect_nat_type2()
243 pool = pj_pool_create(stun_cfg->pf, "natck%p", PJNATH_POOL_LEN_NATCK, in pj_stun_detect_nat_type2()
268 sess->timer_heap = stun_cfg->timer_heap; in pj_stun_detect_nat_type2()
319 status = pj_ioqueue_register_sock2(sess->pool, stun_cfg->ioqueue, in pj_stun_detect_nat_type2()
331 status = pj_stun_session_create(stun_cfg, pool->obj_name, &sess_cb, in pj_stun_detect_nat_type2()
349 on_sess_timer(stun_cfg->timer_heap, &sess->timer); in pj_stun_detect_nat_type2()
H A Dstun_sock.c50 pj_stun_config stun_cfg; /* STUN config (ioqueue etc)*/ member
166 PJ_DEF(pj_status_t) pj_stun_sock_create( pj_stun_config *stun_cfg, in pj_stun_sock_create() argument
182 PJ_ASSERT_RETURN(stun_cfg && cb && p_stun_sock, PJ_EINVAL); in pj_stun_sock_create()
187 status = pj_stun_config_check_valid(stun_cfg); in pj_stun_sock_create()
201 pool = pj_pool_create(stun_cfg->pf, name, 256, 512, NULL); in pj_stun_sock_create()
208 pj_memcpy(&stun_sock->stun_cfg, stun_cfg, sizeof(*stun_cfg)); in pj_stun_sock_create()
329 &activesock_cfg, stun_cfg->ioqueue, in pj_stun_sock_create()
355 status = pj_stun_session_create(&stun_sock->stun_cfg, in pj_stun_sock_create()
518 pj_timer_heap_cancel_if_active(stun_sock->stun_cfg.timer_heap, in pj_stun_sock_destroy()
897 pj_timer_heap_cancel_if_active(stun_sock->stun_cfg.timer_heap, in start_ka_timer()
[all …]
H A Dice_strans.c512 pj_stun_sock_cfg *sock_cfg = &stun_cfg->cfg; in add_stun_and_host()
521 if (stun_cfg->server.slen == 0 && stun_cfg->max_host_cands == 0) in add_stun_and_host()
563 stun_cfg->af, &stun_sock_cb, in add_stun_and_host()
572 while (stun_cfg->server.slen) { in add_stun_and_host()
587 stun_cfg->port, ice_st->cfg.resolver); in add_stun_and_host()
636 if (stun_cfg->max_host_cands) { in add_stun_and_host()
649 cand_cnt < stun_cfg->max_host_cands; ++i) in add_stun_and_host()
662 if (stun_cfg->loop_addr==PJ_FALSE) { in add_stun_and_host()
663 if (stun_cfg->af == pj_AF_INET() && in add_stun_and_host()
668 else if (stun_cfg->af == pj_AF_INET6()) { in add_stun_and_host()
[all …]
H A Dice_session.c293 status = pj_stun_session_create(&ice->stun_cfg, NULL, in init_comp()
349 PJ_ASSERT_RETURN(stun_cfg && cb && p_ice, PJ_EINVAL); in pj_ice_sess_create()
384 pj_memcpy(&ice->stun_cfg, stun_cfg, sizeof(*stun_cfg)); in pj_ice_sess_create()
508 pj_timer_heap_cancel_if_active(ice->stun_cfg.timer_heap, in destroy_ice()
518 pj_timer_heap_cancel_if_active(ice->stun_cfg.timer_heap, in destroy_ice()
1341 pj_timer_heap_schedule_w_grp_lock(ice->stun_cfg.timer_heap, in ice_keep_alive()
1527 ice->stun_cfg.timer_heap, in check_ice_complete()
1617 pj_timer_heap_schedule_w_grp_lock(ice->stun_cfg.timer_heap, in check_ice_complete()
2054 ice->stun_cfg.timer_heap, in add_rcand_and_update_checklist()
2068 pj_timer_heap_cancel_if_active(ice->stun_cfg.timer_heap, in add_rcand_and_update_checklist()
[all …]
H A Dturn_session.c120 pj_stun_config stun_cfg; member
279 pj_memcpy(&sess->stun_cfg, cfg, sizeof(pj_stun_config)); in pj_turn_session_create()
313 status = pj_stun_session_create(&sess->stun_cfg, sess->obj_name, &stun_cb, in pj_turn_session_create()
/dports/net/pjsip/pjproject-2.11.1/pjnath/include/pjnath/
H A Dnat_detect.h196 pj_stun_config *stun_cfg,
220 pj_stun_config *stun_cfg,
H A Dice_session.h710 pj_stun_config stun_cfg; /**< STUN settings. */ member
826 PJ_DECL(pj_status_t) pj_ice_sess_create(pj_stun_config *stun_cfg,
H A Dstun_sock.h357 PJ_DECL(pj_status_t) pj_stun_sock_create(pj_stun_config *stun_cfg,
H A Dice_strans.h406 pj_stun_config stun_cfg; member
/dports/net/pjsip/pjproject-2.11.1/pjsip-apps/src/samples/
H A Dicedemo.c105 if (icedemo.ice_cfg.stun_cfg.ioqueue) in err_exit()
106 pj_ioqueue_destroy(icedemo.ice_cfg.stun_cfg.ioqueue); in err_exit()
108 if (icedemo.ice_cfg.stun_cfg.timer_heap) in err_exit()
109 pj_timer_heap_destroy(icedemo.ice_cfg.stun_cfg.timer_heap); in err_exit()
144 c = pj_timer_heap_poll( icedemo.ice_cfg.stun_cfg.timer_heap, &timeout ); in handle_events()
172 c = pj_ioqueue_poll( icedemo.ice_cfg.stun_cfg.ioqueue, &timeout); in handle_events()
296 icedemo.ice_cfg.stun_cfg.pf = &icedemo.cp.factory; in icedemo_init()
304 &icedemo.ice_cfg.stun_cfg.timer_heap) ); in icedemo_init()
308 &icedemo.ice_cfg.stun_cfg.ioqueue) ); in icedemo_init()
324 icedemo.ice_cfg.stun_cfg.timer_heap, in icedemo_init()
[all …]
/dports/net/kamailio/kamailio-5.4.5/src/modules/stun/
H A Dconfig.c35 void *stun_cfg = &default_stun_cfg; variable
H A Dconfig.h39 extern void *stun_cfg;
H A Dstun_mod.c61 cfg_sizeof(stun), &stun_cfg)) { in mod_init()
/dports/net/pjsip/pjproject-2.11.1/pjnath/src/pjturn-srv/
H A Dturn.h421 pj_stun_config stun_cfg; member
H A Dserver.c142 pj_stun_config_init(&srv->core.stun_cfg, pf, 0, srv->core.ioqueue, in pj_turn_srv_create()
157 status = pj_stun_session_create(&srv->core.stun_cfg, srv->obj_name, in pj_turn_srv_create()
/dports/net/pjsip/pjproject-2.11.1/pjsip/src/pjsua-lib/
H A Dpjsua_core.c1555 status = pj_stun_sock_create(&pjsua_var.stun_cfg, "stunresolve", in resolve_stun_entry()
1682 max_wait_ms = count * pjsua_var.stun_cfg.rto_msec * (1 << 7); in pjsua_resolve_stun_servers()
1786 pj_stun_config_init(&pjsua_var.stun_cfg, &pjsua_var.cp.factory, 0, in resolve_stun_server()
1817 pjsua_var.stun_cfg.rto_msec * (1 << 7); in resolve_stun_server()
3193 &pjsua_var.stun_cfg, in pjsua_detect_nat_type()

12