Changeset 1601 for pjproject/trunk/pjlib/src/pj/os_core_symbian.cpp
- Timestamp:
- Dec 1, 2007 8:52:57 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjlib/src/pj/os_core_symbian.cpp
r1589 r1601 155 155 : isSocketServInitialized_(false), isResolverInitialized_(false), 156 156 console_(NULL), selectTimeoutTimer_(NULL), 157 appSocketServ_(NULL), appConnection_(NULL), appHostResolver_(NULL) 157 appSocketServ_(NULL), appConnection_(NULL), appHostResolver_(NULL), 158 appHostResolver6_(NULL) 158 159 { 159 160 } … … 165 166 appConnection_ = (RConnection*) params->rconnection; 166 167 appHostResolver_ = (RHostResolver*) params->rhostresolver; 168 appHostResolver6_ = (RHostResolver*) params->rhostresolver6; 167 169 } 168 170 … … 200 202 } 201 203 202 if (!isResolverInitialized_ && appHostResolver_ == NULL) { 203 if (Connection()) 204 err = hostResolver_.Open(SocketServ(), KAfInet, KSockStream, 205 *Connection()); 206 else 207 err = hostResolver_.Open(SocketServ(), KAfInet, KSockStream); 204 if (!isResolverInitialized_) { 205 if (appHostResolver_ == NULL) { 206 if (Connection()) 207 err = hostResolver_.Open(SocketServ(), KAfInet, KSockStream, 208 *Connection()); 209 else 210 err = hostResolver_.Open(SocketServ(), KAfInet, KSockStream); 208 211 209 if (err != KErrNone) 210 goto on_error; 211 212 if (err != KErrNone) 213 goto on_error; 214 } 215 216 if (appHostResolver6_ == NULL) { 217 if (Connection()) 218 err = hostResolver6_.Open(SocketServ(), KAfInet6, KSockStream, 219 *Connection()); 220 else 221 err = hostResolver6_.Open(SocketServ(), KAfInet6, KSockStream); 222 223 if (err != KErrNone) 224 goto on_error; 225 } 226 212 227 isResolverInitialized_ = true; 213 228 } … … 225 240 if (isResolverInitialized_) { 226 241 hostResolver_.Close(); 242 hostResolver6_.Close(); 227 243 isResolverInitialized_ = false; 228 244 }
Note: See TracChangeset
for help on using the changeset viewer.