Changeset 5578
- Timestamp:
- Apr 3, 2017 5:31:58 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjnath/src/pjnath/turn_sock.c
r5534 r5578 677 677 } 678 678 679 PJ_UNUSED_ARG(dst_addr); 680 PJ_UNUSED_ARG(dst_addr_len); 681 682 status = pj_activesock_send(turn_sock->active_sock, &turn_sock->send_key, 683 pkt, &len, 0); 679 if (turn_sock->conn_type == PJ_TURN_TP_UDP) { 680 status = pj_activesock_sendto(turn_sock->active_sock, 681 &turn_sock->send_key, pkt, &len, 0, 682 dst_addr, dst_addr_len); 683 } else { 684 status = pj_activesock_send(turn_sock->active_sock, 685 &turn_sock->send_key, pkt, &len, 0); 686 } 684 687 if (status != PJ_SUCCESS && status != PJ_EPENDING) { 685 688 show_err(turn_sock, "socket send()", status);
Note: See TracChangeset
for help on using the changeset viewer.