Ignore:
Timestamp:
Jan 17, 2008 5:29:36 PM (16 years ago)
Author:
nanang
Message:

Ticket #452:

  • Add directory srtp to third_party/build directory
  • Add libsrtp project & integrate it to pjproject vs8 solution
  • Add transport_srtp.h & .c
  • Modify project dependencies to include libsrtp
  • Modify Samples-vc.mak, add libsrtp as third party library
  • Modify transport interface
  • Modify transport_ice & transport_udp to accomodate new transport interface
  • Modify other files that uses transport
File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/branches/users/nanang/pjmedia/include/pjmedia/transport_ice.h

    r1436 r1698  
    1717 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA  
    1818 */ 
    19 #ifndef __pjmedia_ice_H__ 
    20 #define __pjmedia_ice_H__ 
     19#ifndef __PJMEDIA_TRANSPORT_ICE_H__ 
     20#define __PJMEDIA_TRANSPORT_ICE_H__ 
    2121 
    2222 
     
    7575                                        const pjmedia_ice_cb *cb, 
    7676                                        pjmedia_transport **p_tp); 
    77  
    78 /** 
    79  * Destroy the media transport. 
    80  * 
    81  * @param tp            The media transport. 
    82  * 
    83  * @return              PJ_SUCCESS. 
    84  */ 
    85 PJ_DECL(pj_status_t) pjmedia_ice_destroy(pjmedia_transport *tp); 
    8677 
    8778 
     
    170161                                          const pj_str_t *local_passwd); 
    171162 
    172 /** 
    173  * Modify the SDP to add ICE specific SDP attributes before sending 
    174  * the SDP to remote host. 
    175  * 
    176  * @param tp            The media transport. 
    177  * @param pool          Pool to allocate memory for the SDP elements. 
    178  * @param sdp           The SDP descriptor to be modified. 
    179  * 
    180  * @return              PJ_SUCCESS, or the appropriate error code. 
    181  */ 
    182 PJ_DECL(pj_status_t) pjmedia_ice_modify_sdp(pjmedia_transport *tp, 
    183                                             pj_pool_t *pool, 
    184                                             pjmedia_sdp_session *sdp); 
    185  
    186 /** 
    187  * Start ICE connectivity checks. 
    188  * 
    189  * This function will pair the local and remote candidates to create  
    190  * check list. Once the check list is created and sorted based on the 
    191  * priority, ICE periodic checks will be started. This function will  
    192  * return immediately, and application will be notified about the  
    193  * connectivity check status in the callback. 
    194  * 
    195  * @param tp            The media transport. 
    196  * @param pool          Memory pool to parse the SDP. 
    197  * @param rem_sdp       The SDP received from remote agent. 
    198  * @param media_index   The media index (in SDP) to process. 
    199  * 
    200  * @return              PJ_SUCCESS, or the appropriate error code. 
    201  */ 
    202 PJ_DECL(pj_status_t) pjmedia_ice_start_ice(pjmedia_transport *tp, 
    203                                            pj_pool_t *pool, 
    204                                            const pjmedia_sdp_session *rem_sdp, 
    205                                            unsigned media_index); 
    206  
    207 /** 
    208  * Stop the ICE session (typically when the call is terminated). Application 
    209  * may restart the ICE session again by calling #pjmedia_ice_init_ice(), 
    210  * for example to use this media transport for the next call. 
    211  * 
    212  * @param tp            The media transport. 
    213  * 
    214  * @return              PJ_SUCCESS, or the appropriate error code. 
    215  */ 
    216 PJ_DECL(pj_status_t) pjmedia_ice_stop_ice(pjmedia_transport *tp); 
    217  
    218  
    219 /** 
    220  * Simulate packet lost in the specified direction (for testing purposes). 
    221  * When enabled, the transport will randomly drop packets to the specified 
    222  * direction. 
    223  * 
    224  * @param tp        The ICE media transport. 
    225  * @param dir       Media direction to which packets will be randomly dropped. 
    226  * @param pct_lost  Percent lost (0-100). Set to zero to disable packet 
    227  *                  lost simulation. 
    228  * 
    229  * @return          PJ_SUCCESS on success. 
    230  */ 
    231 PJ_DECL(pj_status_t) pjmedia_ice_simulate_lost(pjmedia_transport *tp, 
    232                                                pjmedia_dir dir, 
    233                                                unsigned pct_lost); 
    234  
    235  
    236  
    237163 
    238164PJ_END_DECL 
     
    244170 
    245171 
    246 #endif  /* __pjmedia_ice_H__ */ 
     172#endif  /* __PJMEDIA_TRANSPORT_ICE_H__ */ 
    247173 
    248174 
Note: See TracChangeset for help on using the changeset viewer.