- Timestamp:
- Apr 9, 2008 1:34:49 PM (17 years ago)
- Location:
- pjproject/trunk/pjnath
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjnath/build/Makefile
r1913 r1916 59 59 # 60 60 export PJTURN_SRV_SRCDIR = ../src/pjturn-srv 61 export PJTURN_SRV_OBJS += allocation.o auth.o listener_udp.o server.o \62 61 export PJTURN_SRV_OBJS += allocation.o auth.o listener_udp.o \ 62 listener_tcp.o server.o main.o 63 63 export PJTURN_SRV_CFLAGS += $(_CFLAGS) 64 64 export PJTURN_SRV_LDFLAGS += $(_LDFLAGS) -
pjproject/trunk/pjnath/build/pjnath.dsw
r1867 r1916 41 41 42 42 Project: "pjnath_test"=.\pjnath_test.dsp - Package Owner=<4> 43 44 Package=<5>45 {{{46 }}}47 48 Package=<4>49 {{{50 Begin Project Dependency51 Project_Dep_Name pjlib52 End Project Dependency53 Begin Project Dependency54 Project_Dep_Name pjlib_util55 End Project Dependency56 Begin Project Dependency57 Project_Dep_Name pjnath58 End Project Dependency59 }}}60 61 ###############################################################################62 63 Project: "pjstun_srv_test"=.\pjstun_srv_test.dsp - Package Owner=<4>64 43 65 44 Package=<5> -
pjproject/trunk/pjnath/src/pjnath-test/sess_auth.c
r1877 r1916 56 56 57 57 static pj_status_t server_send_msg(pj_stun_session *sess, 58 void *token, 58 59 const void *pkt, 59 60 pj_size_t pkt_size, … … 64 65 65 66 PJ_UNUSED_ARG(sess); 67 PJ_UNUSED_ARG(token); 66 68 67 69 return pj_sock_sendto(server->sock, pkt, &len, 0, dst_addr, addr_len); … … 72 74 unsigned pkt_len, 73 75 const pj_stun_rx_data *rdata, 76 void *token, 74 77 const pj_sockaddr_t *src_addr, 75 78 unsigned src_addr_len) … … 77 80 PJ_UNUSED_ARG(pkt); 78 81 PJ_UNUSED_ARG(pkt_len); 79 80 return pj_stun_session_respond(sess, rdata, 0, NULL, PJ_TRUE, 82 PJ_UNUSED_ARG(token); 83 84 return pj_stun_session_respond(sess, rdata, 0, NULL, NULL, PJ_TRUE, 81 85 src_addr, src_addr_len); 82 86 } … … 192 196 pj_stun_session_on_rx_pkt(server->sess, pkt, len, 193 197 PJ_STUN_CHECK_PACKET | PJ_STUN_IS_DATAGRAM, 194 NULL, &src_addr, src_addr_len);198 NULL, NULL, &src_addr, src_addr_len); 195 199 } 196 200 } … … 328 332 329 333 static pj_status_t client_send_msg(pj_stun_session *sess, 334 void *token, 330 335 const void *pkt, 331 336 pj_size_t pkt_size, … … 336 341 337 342 PJ_UNUSED_ARG(sess); 343 PJ_UNUSED_ARG(token); 338 344 339 345 return pj_sock_sendto(client->sock, pkt, &len, 0, dst_addr, addr_len); … … 343 349 static void client_on_request_complete( pj_stun_session *sess, 344 350 pj_status_t status, 351 void *token, 345 352 pj_stun_tx_data *tdata, 346 353 const pj_stun_msg *response, … … 349 356 { 350 357 PJ_UNUSED_ARG(sess); 358 PJ_UNUSED_ARG(token); 351 359 PJ_UNUSED_ARG(tdata); 352 360 PJ_UNUSED_ARG(src_addr); … … 401 409 pj_stun_session_on_rx_pkt(client->sess, pkt, len, 402 410 PJ_STUN_CHECK_PACKET | PJ_STUN_IS_DATAGRAM, 403 NULL, &src_addr, src_addr_len);411 NULL, NULL, &src_addr, src_addr_len); 404 412 } 405 413 … … 554 562 555 563 /* Send the request */ 556 status = pj_stun_session_send_msg(client->sess, PJ_FALSE, &server->addr,564 status = pj_stun_session_send_msg(client->sess, NULL, PJ_FALSE, PJ_TRUE, &server->addr, 557 565 pj_sockaddr_get_len(&server->addr), tdata); 558 566 if (status != PJ_SUCCESS) {
Note: See TracChangeset
for help on using the changeset viewer.