Ignore:
Timestamp:
Mar 23, 2007 4:34:20 PM (17 years ago)
Author:
bennylp
Message:

ICE (work in progress): integration with PJSUA

File:
1 edited

Legend:

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

    r1097 r1098  
    179179struct pjmedia_transport_op 
    180180{ 
     181    /** 
     182     * Get media socket info from the specified transport. 
     183     * 
     184     * Application should call #pjmedia_transport_get_info() instead 
     185     */ 
    181186    pj_status_t (*get_info)(pjmedia_transport *tp, 
    182187                            pjmedia_sock_info *info); 
     
    255260 
    256261 
     262/**  
     263 * Media transport type. 
     264 */ 
     265typedef enum pjmedia_transport_type 
     266{ 
     267    /** Media transport using standard UDP */ 
     268    PJMEDIA_TRANSPORT_TYPE_UDP, 
     269 
     270    /** Media transport using ICE */ 
     271    PJMEDIA_TRANSPORT_TYPE_ICE 
     272 
     273} pjmedia_transport_type; 
     274 
     275 
    257276/** 
    258277 * This structure declares stream transport. A stream transport is called 
     
    263282{ 
    264283    /** Transport name (for logging purpose). */ 
    265     char                  name[PJ_MAX_OBJ_NAME]; 
     284    char                     name[PJ_MAX_OBJ_NAME]; 
     285 
     286    /** Transport type. */ 
     287    pjmedia_transport_type   type; 
    266288 
    267289    /** Transport's "virtual" function table. */ 
    268     pjmedia_transport_op *op; 
     290    pjmedia_transport_op    *op; 
    269291}; 
    270292 
    271293 
     294/** 
     295 * Get media socket info from the specified transport. The socket info 
     296 * contains information about the local address of this transport, and 
     297 * would be needed for example to fill in the "c=" and "m=" line of local  
     298 * SDP. 
     299 * 
     300 * @param tp        The transport. 
     301 * @param info      Media socket info to be initialized. 
     302 * 
     303 * @return          PJ_SUCCESS on success. 
     304 */ 
    272305PJ_INLINE(pj_status_t) pjmedia_transport_get_info(pjmedia_transport *tp, 
    273306                                                  pjmedia_sock_info *info) 
Note: See TracChangeset for help on using the changeset viewer.