Changes between Version 3 and Version 4 of pjsip-doc/endpoint
- Timestamp:
- Dec 4, 2013 6:32:37 AM (11 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
pjsip-doc/endpoint
v3 v4 31 31 ep->libCreate(); 32 32 } catch(Error& err) { 33 cout << "Startup error: " << err. reason<< endl;33 cout << "Startup error: " << err.info() << endl; 34 34 } 35 35 … … 59 59 ep->libInit(ep_cfg); 60 60 } catch(Error& err) { 61 cout << "Initialization error: " << err. reason<< endl;61 cout << "Initialization error: " << err.info() << endl; 62 62 } 63 63 … … 73 73 TransportId tid = ep->transportCreate(PJSIP_TRANSPORT_UDP, tcfg); 74 74 } catch(Error& err) { 75 cout << "Transport creation error: " << err. reason<< endl;75 cout << "Transport creation error: " << err.info() << endl; 76 76 } 77 77 … … 87 87 ep->libStart(); 88 88 } catch(Error& err) { 89 cout << "Startup error: " << err. reason<< endl;89 cout << "Startup error: " << err.info() << endl; 90 90 } 91 91 … … 94 94 Once the application exits, the library needs to be shutdown so that resources can be released back to the operating system. This is done by deleting the Endpoint instance, which will internally call libDestroy():: 95 95 96 // This will implicitly call libDestroy() 96 97 delete ep; 97 98