- Timestamp:
- Nov 1, 2013 7:11:48 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/branches/projects/pjsua2/pjsip/include/pjsua2/endpoint.hpp
r4638 r4639 598 598 599 599 /** 600 * Get library version. 601 */ 602 Version libVersion() const; 603 604 /** 600 605 * Instantiate pjsua application. Application must call this function before 601 606 * calling any other functions, to make sure that the underlying libraries … … 629 634 */ 630 635 void libStart() throw(Error); 636 637 /** 638 * Register a thread to poll for events. This function should be 639 * called by an external worker thread, and it will block polling 640 * for events until the library is destroyed. 641 */ 642 void libRegisterWorkerThread(const string &name) throw(Error); 643 644 /** 645 * Stop all worker threads. 646 */ 647 void libStopWorkerThreads(); 648 649 /** 650 * Poll pjsua for events, and if necessary block the caller thread for 651 * the specified maximum interval (in miliseconds). 652 * 653 * Application doesn't normally need to call this function if it has 654 * configured worker thread (\a thread_cnt field) in pjsua_config 655 * structure, because polling then will be done by these worker threads 656 * instead. 657 * 658 * @param msec_timeout Maximum time to wait, in miliseconds. 659 * 660 * @return The number of events that have been handled during the 661 * poll. Negative value indicates error, and application 662 * can retrieve the error as (status = -return_value). 663 */ 664 int libHandleEvents(unsigned msec_timeout); 631 665 632 666 /** … … 641 675 * keep track of it's state. 642 676 * 643 * @param prmFlags 677 * @param prmFlags Combination of pjsua_destroy_flag enumeration. 644 678 */ 645 679 void libDestroy(unsigned prmFlags=0) throw(Error);
Note: See TracChangeset
for help on using the changeset viewer.