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/stun_sock.h

    r4360 r4538  
    295295     */ 
    296296    pj_bool_t qos_ignore_error; 
     297 
     298    /** 
     299     * Specify target value for socket receive buffer size. It will be 
     300     * applied using setsockopt(). When it fails to set the specified size, 
     301     * it will try with lower value until the highest possible is 
     302     * successfully set. 
     303     * 
     304     * Default: 0 (OS default) 
     305     */ 
     306    unsigned so_rcvbuf_size; 
     307 
     308    /** 
     309     * Specify target value for socket send buffer size. It will be 
     310     * applied using setsockopt(). When it fails to set the specified size, 
     311     * it will try with lower value until the highest possible is 
     312     * successfully set. 
     313     * 
     314     * Default: 0 (OS default) 
     315     */ 
     316    unsigned so_sndbuf_size; 
    297317 
    298318} pj_stun_sock_cfg; 
Note: See TracChangeset for help on using the changeset viewer.