- Timestamp:
- Jan 17, 2008 5:29:36 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/branches/users/nanang/pjmedia/include/pjmedia/transport_udp.h
r1615 r1698 54 54 PJMEDIA_UDP_NO_SRC_ADDR_CHECKING = 1 55 55 }; 56 57 58 /**59 * UDP transport info.60 */61 typedef struct pjmedia_transport_udp_info62 {63 /**64 * Media socket info.65 */66 pjmedia_sock_info skinfo;67 68 } pjmedia_transport_udp_info;69 56 70 57 … … 138 125 pjmedia_transport **p_tp); 139 126 140 /**141 * Get media socket info from the specified UDP transport.142 *143 * @param tp The UDP transport interface.144 * @param info Media socket info to be initialized.145 *146 * @return PJ_SUCCESS on success.147 */148 PJ_DECL(pj_status_t)149 pjmedia_transport_udp_get_info( pjmedia_transport *tp,150 pjmedia_transport_udp_info *info);151 152 127 153 128 /** … … 170 145 171 146 172 /**173 * Simulate packet lost in the specified direction (for testing purposes).174 * When enabled, the transport will randomly drop packets to the specified175 * direction.176 *177 * @param tp The UDP media transport.178 * @param dir Media direction to which packets will be randomly dropped.179 * @param pct_lost Percent lost (0-100). Set to zero to disable packet180 * lost simulation.181 *182 * @return PJ_SUCCESS on success.183 */184 PJ_DECL(pj_status_t) pjmedia_transport_udp_simulate_lost(pjmedia_transport *tp,185 pjmedia_dir dir,186 unsigned pct_lost);187 188 189 190 /**191 * Close UDP transport. Application can also use the "destroy" member of192 * media transport interface to close the UDP transport.193 *194 * @param tp The UDP media transport.195 *196 * @return PJ_SUCCESS on success.197 */198 PJ_DECL(pj_status_t) pjmedia_transport_udp_close(pjmedia_transport *tp);199 200 201 202 147 PJ_END_DECL 203 148
Note: See TracChangeset
for help on using the changeset viewer.