Changeset 1106 for pjproject/trunk/pjmedia/src/pjmedia/transport_ice.c
- Timestamp:
- Mar 26, 2007 1:25:07 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjmedia/src/pjmedia/transport_ice.c
r1104 r1106 154 154 { 155 155 struct transport_ice *tp_ice = (struct transport_ice*)tp; 156 unsigned comp_id;157 156 pj_status_t status; 158 157 … … 161 160 return status; 162 161 163 status = pj_ice_st_create_comp(tp_ice->ice_st, 1, options, start_addr, 164 &comp_id); 162 status = pj_ice_st_create_comp(tp_ice->ice_st, 1, options, start_addr); 165 163 if (status != PJ_SUCCESS) 166 164 return status; … … 168 166 if (tp_ice->ice_st->comp_cnt > 1) { 169 167 pj_sockaddr_in addr; 168 pj_uint16_t port; 170 169 171 170 pj_memcpy(&addr, &tp_ice->ice_st->comp[0]->local_addr.ipv4, … … 176 175 addr.sin_addr.s_addr = 0; 177 176 178 addr.sin_port = (pj_uint16_t)(pj_ntohs(addr.sin_port)+1); 179 status = pj_ice_st_create_comp(tp_ice->ice_st, 2, options, 180 &addr, &comp_id); 177 port = pj_ntohs(addr.sin_port); 178 ++port; 179 addr.sin_port = pj_htons(port); 180 status = pj_ice_st_create_comp(tp_ice->ice_st, 2, options, &addr); 181 181 if (status != PJ_SUCCESS) 182 182 return status; … … 482 482 pj_assert(comp->default_cand >= 0); 483 483 info->rtp_sock = comp->sock; 484 pj_memcpy(&info->rt p_addr_name,484 pj_memcpy(&info->rtcp_addr_name, 485 485 &comp->cand_list[comp->default_cand].addr, 486 486 sizeof(pj_sockaddr_in));
Note: See TracChangeset
for help on using the changeset viewer.