Changeset 5170 for pjproject/trunk/pjsip/src/pjsua2/siptypes.cpp
- Timestamp:
- Aug 25, 2015 8:45:46 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip/src/pjsua2/siptypes.cpp
r4968 r5170 305 305 /////////////////////////////////////////////////////////////////////////////// 306 306 307 void TransportInfo::fromPj(const pjsua_transport_info & info)308 { 309 this->id = info.id;310 this->type = info.type;311 this->typeName = pj2Str( info.type_name);312 this->info = pj2Str( info.info);313 this->flags = info.flag;307 void TransportInfo::fromPj(const pjsua_transport_info &tinfo) 308 { 309 this->id = tinfo.id; 310 this->type = tinfo.type; 311 this->typeName = pj2Str(tinfo.type_name); 312 this->info = pj2Str(tinfo.info); 313 this->flags = tinfo.flag; 314 314 315 315 char straddr[PJ_INET6_ADDRSTRLEN+10]; 316 pj_sockaddr_print(& info.local_addr, straddr, sizeof(straddr), 3);316 pj_sockaddr_print(&tinfo.local_addr, straddr, sizeof(straddr), 3); 317 317 this->localAddress = straddr; 318 318 319 319 pj_ansi_snprintf(straddr, sizeof(straddr), "%.*s:%d", 320 (int) info.local_name.host.slen,321 info.local_name.host.ptr,322 info.local_name.port);320 (int)tinfo.local_name.host.slen, 321 tinfo.local_name.host.ptr, 322 tinfo.local_name.port); 323 323 this->localName = straddr; 324 this->usageCount = info.usage_count;324 this->usageCount = tinfo.usage_count; 325 325 } 326 326
Note: See TracChangeset
for help on using the changeset viewer.