Changes between Version 3 and Version 4 of pjsip-doc/endpoint


Ignore:
Timestamp:
Dec 4, 2013 6:32:37 AM (10 years ago)
Author:
ming
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • pjsip-doc/endpoint

    v3 v4  
    3131        ep->libCreate(); 
    3232    } catch(Error& err) { 
    33         cout << "Startup error: " << err.reason << endl; 
     33        cout << "Startup error: " << err.info() << endl; 
    3434    } 
    3535 
     
    5959        ep->libInit(ep_cfg); 
    6060    } catch(Error& err) { 
    61         cout << "Initialization error: " << err.reason << endl; 
     61        cout << "Initialization error: " << err.info() << endl; 
    6262    } 
    6363 
     
    7373        TransportId tid = ep->transportCreate(PJSIP_TRANSPORT_UDP, tcfg); 
    7474    } catch(Error& err) { 
    75         cout << "Transport creation error: " << err.reason << endl; 
     75        cout << "Transport creation error: " << err.info() << endl; 
    7676    } 
    7777 
     
    8787        ep->libStart(); 
    8888    } catch(Error& err) { 
    89         cout << "Startup error: " << err.reason << endl; 
     89        cout << "Startup error: " << err.info() << endl; 
    9090    } 
    9191 
     
    9494Once 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():: 
    9595 
     96    // This will implicitly call libDestroy() 
    9697    delete ep; 
    9798