Ignore:
Timestamp:
Jun 19, 2013 9:06:55 AM (7 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/pjnath/include/pjnath/ice_strans.h

    r4133 r4538  
    371371        pj_qos_params qos_params; 
    372372 
     373        /** 
     374         * Specify target value for socket receive buffer size. It will be 
     375         * applied using setsockopt(). When it fails to set the specified 
     376         * size, it will try with lower value until the highest possible is 
     377         * successfully set. 
     378         * 
     379         * When this is set to zero, this component will apply socket receive 
     380         * buffer size settings specified in STUN and TURN socket config 
     381         * above, i.e: \a stun::cfg::so_rcvbuf_size and 
     382         * \a turn::cfg::so_rcvbuf_size. Otherwise, this setting will be 
     383         * applied to STUN and TURN sockets for this component, overriding 
     384         * the setting specified in STUN/TURN socket config. 
     385         * 
     386         * Default: 0 
     387         */ 
     388        unsigned so_rcvbuf_size; 
     389 
     390        /** 
     391         * Specify target value for socket send buffer size. It will be 
     392         * applied using setsockopt(). When it fails to set the specified 
     393         * size, it will try with lower value until the highest possible is 
     394         * successfully set. 
     395         * 
     396         * When this is set to zero, this component will apply socket send 
     397         * buffer size settings specified in STUN and TURN socket config 
     398         * above, i.e: \a stun::cfg::so_sndbuf_size and 
     399         * \a turn::cfg::so_sndbuf_size. Otherwise, this setting will be 
     400         * applied to STUN and TURN sockets for this component, overriding 
     401         * the setting specified in STUN/TURN socket config. 
     402         * 
     403         * Default: 0 
     404         */ 
     405        unsigned so_sndbuf_size; 
     406 
    373407    } comp[PJ_ICE_MAX_COMP]; 
    374408 
Note: See TracChangeset for help on using the changeset viewer.