Changeset 5649 for pjproject/trunk/pjsip/src/pjsip/sip_transport_udp.c
- Timestamp:
- Sep 15, 2017 5:32:08 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip/src/pjsip/sip_transport_udp.c
r5636 r5649 1081 1081 */ 1082 1082 PJ_DEF(pj_status_t) pjsip_udp_transport_restart(pjsip_transport *transport, 1083 1083 unsigned option, 1084 1084 pj_sock_t sock, 1085 1085 const pj_sockaddr_in *local, 1086 1086 const pjsip_host_port *a_name) 1087 { 1088 return pjsip_udp_transport_restart2(transport, option, sock, 1089 (pj_sockaddr*)local, a_name); 1090 } 1091 1092 1093 PJ_DEF(pj_status_t) pjsip_udp_transport_restart2(pjsip_transport *transport, 1094 unsigned option, 1095 pj_sock_t sock, 1096 const pj_sockaddr *local, 1097 const pjsip_host_port *a_name) 1087 1098 { 1088 1099 struct udp_transport *tp; … … 1099 1110 */ 1100 1111 tp->is_paused = PJ_TRUE; 1101 1112 1102 1113 if (option & PJSIP_UDP_TRANSPORT_DESTROY_SOCKET) { 1103 1114 char addr_buf[PJ_INET6_ADDRSTRLEN]; … … 1122 1133 /* Create the socket if it's not specified */ 1123 1134 if (sock == PJ_INVALID_SOCKET) { 1124 status = create_socket( pj_AF_INET(), local,1125 sizeof(pj_sockaddr_in), &sock);1135 status = create_socket(local->addr.sa_family, local, 1136 pj_sockaddr_get_len(local), &sock); 1126 1137 if (status != PJ_SUCCESS) 1127 1138 return status; … … 1190 1201 return PJ_SUCCESS; 1191 1202 } 1192
Note: See TracChangeset
for help on using the changeset viewer.