Changeset 1916 for pjproject/trunk/pjnath/src/pjnath-test/sess_auth.c
- Timestamp:
- Apr 9, 2008 1:34:49 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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.