Ignore:
Timestamp:
Jun 19, 2013 9:06:55 AM (9 years ago)
Author:
nanang
Message:

Close #1681:

  • Added compile-time settings PJMEDIA_TRANSPORT_SO_RCVBUF_SIZE and PJMEDIA_TRANSPORT_SO_SNDBUF_SIZE. The default values are both 64 KB when PJMEDIA_HAS_VIDEO is set, otherwise just zero (socket buffer size uses OS default). The settings will be applied to media transport UDP and ICE.
  • Also added run-time settings so_sndbuf_size and so_rcvbuf_size into ICE stream transport, STUN socket, and TURN socket. Default values are all zero.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjlib/include/pj/sock.h

    r4343 r4538  
    13081308 
    13091309/** 
     1310 * Helper function to set socket buffer size using #pj_sock_setsockopt() 
     1311 * with capability to auto retry with lower buffer setting value until 
     1312 * the highest possible value is successfully set. 
     1313 * 
     1314 * @param sockfd        The socket descriptor. 
     1315 * @param optname       The option name, valid values are pj_SO_RCVBUF() 
     1316 *                      and pj_SO_SNDBUF(). 
     1317 * @param auto_retry    Option whether auto retry with lower value is 
     1318 *                      enabled. 
     1319 * @param buf_size      On input, specify the prefered buffer size setting, 
     1320 *                      on output, the buffer size setting applied. 
     1321 * 
     1322 * @return              PJ_SUCCESS or the status code. 
     1323 */ 
     1324PJ_DECL(pj_status_t) pj_sock_setsockopt_sobuf( pj_sock_t sockfd, 
     1325                                               pj_uint16_t optname, 
     1326                                               pj_bool_t auto_retry, 
     1327                                               unsigned *buf_size); 
     1328 
     1329 
     1330/** 
    13101331 * Receives data stream or message coming to the specified socket. 
    13111332 * 
Note: See TracChangeset for help on using the changeset viewer.