Ignore:
Timestamp:
Oct 25, 2009 9:02:07 AM (15 years ago)
Author:
bennylp
Message:

Initial commit for ticket #950: QoS support:

  • implementation:
    • PJLIB (sock_qos*.*)
  • added QoS support in:
    • SIP UDP transport,
    • SIP TCP transport,
    • media UDP transport (done in pjsua-lib),
    • pjnath ICE stream transport,
    • pjnath STUN socket,
    • pjnath TURN client
  • added QoS options in pjsua-lib:
    • QoS fields in pjsua_transport_config
  • added "--set-qos" parameter in pjsua

Notes:

  • QoS in TLS transport is not yet implemented, waiting for #957
  • build ok on VS6, VS2005 (multiple targets), Carbide, and Mingw
  • no run-time testing yet
File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjlib/src/pj/sock_bsd.c

    r2964 r2966  
    6464const pj_uint16_t PJ_SOL_IP     = IPPROTO_IP; 
    6565#else 
    66 const pj_uint16_t PJ_SOL_IP     = 0xFFFF; 
     66const pj_uint16_t PJ_SOL_IP     = 0; 
    6767#endif /* SOL_IP */ 
    6868 
     
    7474const pj_uint16_t PJ_SOL_TCP    = IPPROTO_TCP; 
    7575#else 
    76 const pj_uint16_t PJ_SOL_TCP    = 0xFFFF; 
     76const pj_uint16_t PJ_SOL_TCP    = 6; 
    7777#endif /* SOL_TCP */ 
    7878 
     
    8484const pj_uint16_t PJ_SOL_UDP    = IPPROTO_UDP; 
    8585#else 
    86 const pj_uint16_t PJ_SOL_UDP    = 0xFFFF; 
     86const pj_uint16_t PJ_SOL_UDP    = 17; 
    8787#endif /* SOL_UDP */ 
    8888 
     
    9696#   endif 
    9797#else 
    98 const pj_uint16_t PJ_SOL_IPV6   = 0xFFFF; 
     98const pj_uint16_t PJ_SOL_IPV6   = 41; 
    9999#endif /* SOL_IPV6 */ 
    100100 
     
    136136const pj_uint16_t PJ_TCP_NODELAY= TCP_NODELAY; 
    137137const pj_uint16_t PJ_SO_REUSEADDR= SO_REUSEADDR; 
     138#if defined(SO_PRIORITY) 
     139const pj_uint16_t PJ_SO_PRIORITY = SO_PRIORITY; 
     140#else 
     141/* This is from Linux, YMMV */ 
     142const pj_uint16_t PJ_SO_PRIORITY = 12; 
     143#endif 
    138144 
    139145/* Multicasting is not supported e.g. in PocketPC 2003 SDK */ 
Note: See TracChangeset for help on using the changeset viewer.