- Timestamp:
- Dec 28, 2016 3:40:07 AM (8 years ago)
- Location:
- pjproject/branches/projects/uwp
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/branches/projects/uwp
- Property svn:mergeinfo changed
/pjproject/trunk (added) merged: 5209,5212-5234,5237-5253,5255,5257-5292,5294-5297,5299-5332,5334-5394,5396-5438,5440-5469,5471-5496,5498-5510
- Property svn:mergeinfo changed
-
pjproject/branches/projects/uwp/pjsip-apps/src/samples/proxy.h
r4370 r5513 253 253 */ 254 254 if (pj_gethostip(pj_AF_INET(), &pri_addr)==PJ_SUCCESS) { 255 pj_strdup2(global.pool, &global.name[global.name_cnt].host, 256 pj_inet_ntoa(pri_addr.ipv4.sin_addr)); 255 char addr[PJ_INET_ADDRSTRLEN]; 256 pj_inet_ntop(pj_AF_INET(), &pri_addr.ipv4.sin_addr, addr, 257 sizeof(addr)); 258 pj_strdup2(global.pool, &global.name[global.name_cnt].host, addr); 257 259 global.name[global.name_cnt].port = global.port; 258 260 global.name_cnt++; … … 260 262 261 263 /* Get the rest of IP interfaces */ 262 if (pj_enum_ip_interface(pj_AF_INET(), &addr_cnt, addr_list) == PJ_SUCCESS) { 264 if (pj_enum_ip_interface(pj_AF_INET(), &addr_cnt, addr_list) == PJ_SUCCESS) 265 { 263 266 for (i=0; i<addr_cnt; ++i) { 264 267 char addr[PJ_INET_ADDRSTRLEN]; 268 265 269 if (addr_list[i].ipv4.sin_addr.s_addr == pri_addr.ipv4.sin_addr.s_addr) 266 270 continue; 267 271 272 pj_inet_ntop(pj_AF_INET(), &addr_list[i].ipv4.sin_addr, addr, 273 sizeof(addr)); 268 274 pj_strdup2(global.pool, &global.name[global.name_cnt].host, 269 pj_inet_ntoa(addr_list[i].ipv4.sin_addr));275 addr); 270 276 global.name[global.name_cnt].port = global.port; 271 277 global.name_cnt++;
Note: See TracChangeset
for help on using the changeset viewer.