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

    r4443 r4538  
    12181218 
    12191219/** 
     1220 * Specify target value for socket receive buffer size. It will be 
     1221 * applied to RTP socket of media transport using setsockopt(). When 
     1222 * transport failed to set the specified size, it will try with lower 
     1223 * value until the highest possible is successfully set. 
     1224 * 
     1225 * Setting this to zero will leave the socket receive buffer size to 
     1226 * OS default (e.g: usually 8 KB on desktop platforms). 
     1227 * 
     1228 * Default: 64 KB when video is enabled, otherwise zero (OS default) 
     1229 */ 
     1230#ifndef PJMEDIA_TRANSPORT_SO_RCVBUF_SIZE 
     1231#   if PJMEDIA_HAS_VIDEO 
     1232#       define PJMEDIA_TRANSPORT_SO_RCVBUF_SIZE (64*1024) 
     1233#   else 
     1234#       define PJMEDIA_TRANSPORT_SO_RCVBUF_SIZE 0 
     1235#   endif 
     1236#endif 
     1237 
     1238 
     1239/** 
     1240 * Specify target value for socket send buffer size. It will be 
     1241 * applied to RTP socket of media transport using setsockopt(). When 
     1242 * transport failed to set the specified size, it will try with lower 
     1243 * value until the highest possible is successfully set. 
     1244 * 
     1245 * Setting this to zero will leave the socket send buffer size to 
     1246 * OS default (e.g: usually 8 KB on desktop platforms). 
     1247 * 
     1248 * Default: 64 KB when video is enabled, otherwise zero (OS default) 
     1249 */ 
     1250#ifndef PJMEDIA_TRANSPORT_SO_SNDBUF_SIZE 
     1251#   if PJMEDIA_HAS_VIDEO 
     1252#       define PJMEDIA_TRANSPORT_SO_SNDBUF_SIZE (64*1024) 
     1253#   else 
     1254#       define PJMEDIA_TRANSPORT_SO_SNDBUF_SIZE 0 
     1255#   endif 
     1256#endif 
     1257 
     1258 
     1259/** 
    12201260 * @} 
    12211261 */ 
Note: See TracChangeset for help on using the changeset viewer.