Ignore:
Timestamp:
Mar 22, 2006 11:59:11 AM (18 years ago)
Author:
bennylp
Message:

Redesign RTP/RTCP stuffs so that stream does not create thread implicitly. Changed pjmedia_endpt_create() API.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjmedia/include/pjmedia/endpoint.h

    r189 r350  
    4545 
    4646 
    47  
    4847/** 
    4948 * Create an instance of media endpoint. 
     
    5150 * @param pf            Pool factory, which will be used by the media endpoint 
    5251 *                      throughout its lifetime. 
     52 * @param ioqueue       Optional ioqueue instance to be registered to the  
     53 *                      endpoint. The ioqueue instance is used to poll all RTP 
     54 *                      and RTCP sockets. If this argument is NULL, the  
     55 *                      endpoint will create an internal ioqueue instance. 
     56 * @param worker_cnt    Specify the number of worker threads to be created 
     57 *                      to poll the ioqueue. 
    5358 * @param p_endpt       Pointer to receive the endpoint instance. 
    5459 * 
     
    5661 */ 
    5762PJ_DECL(pj_status_t) pjmedia_endpt_create( pj_pool_factory *pf, 
     63                                           pj_ioqueue_t *ioqueue, 
     64                                           unsigned worker_cnt, 
    5865                                           pjmedia_endpt **p_endpt); 
    5966 
     
    6673 */ 
    6774PJ_DECL(pj_status_t) pjmedia_endpt_destroy(pjmedia_endpt *endpt); 
     75 
     76 
     77 
     78/** 
     79 * Get the ioqueue instance of the media endpoint. 
     80 * 
     81 * @param endpt         The media endpoint instance. 
     82 * 
     83 * @return              The ioqueue instance of the media endpoint. 
     84 */ 
     85PJ_DECL(pj_ioqueue_t*) pjmedia_endpt_get_ioqueue(pjmedia_endpt *endpt); 
    6886 
    6987 
Note: See TracChangeset for help on using the changeset viewer.