Ignore:
Timestamp:
Sep 15, 2007 8:55:00 AM (17 years ago)
Author:
bennylp
Message:

Implemented ticket #373: Packet loss simulation in PJMEDIA ICE transport

File:
1 edited

Legend:

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

    r1435 r1436  
    217217 
    218218 
     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 */ 
     231PJ_DECL(pj_status_t) pjmedia_ice_simulate_lost(pjmedia_transport *tp, 
     232                                               pjmedia_dir dir, 
     233                                               unsigned pct_lost); 
     234 
    219235 
    220236 
Note: See TracChangeset for help on using the changeset viewer.