Ignore:
Timestamp:
Oct 15, 2009 3:48:20 AM (15 years ago)
Author:
bennylp
Message:

Ticket #972: setsockopt compatibility problems on Windows (thanks Yann and John Ridges for the reports)

  • set PJ_SOL_IP, PJ_SOL_TCP, and PJ_SOL_UDP to IPPROTO_IP, IPPROTO_TCP, and IPPROTO_UDP respectively on Windows
  • also added PJ_TCP_NODELAY and PJ_SO_REUSEADDR
File:
1 edited

Legend:

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

    r2863 r2946  
    291291extern const pj_uint16_t PJ_SO_SNDBUF; 
    292292 
     293/** Disables the Nagle algorithm for send coalescing. @see pj_TCP_NODELAY */ 
     294extern const pj_uint16_t PJ_TCP_NODELAY; 
     295 
     296/** Allows the socket to be bound to an address that is already in use. 
     297 *  @see pj_SO_REUSEADDR */ 
     298extern const pj_uint16_t PJ_SO_REUSEADDR; 
     299 
    293300/** IP multicast interface. @see pj_IP_MULTICAST_IF() */ 
    294301extern const pj_uint16_t PJ_IP_MULTICAST_IF; 
     
    317324    PJ_DECL(pj_uint16_t) pj_SO_SNDBUF(void); 
    318325 
     326    /** Get #PJ_TCP_NODELAY constant */ 
     327    PJ_DECL(pj_uint16_t) pj_TCP_NODELAY(void); 
     328 
     329    /** Get #PJ_SO_REUSEADDR constant */ 
     330    PJ_DECL(pj_uint16_t) pj_SO_REUSEADDR(void); 
     331 
    319332    /** Get #PJ_IP_MULTICAST_IF constant */ 
    320333    PJ_DECL(pj_uint16_t) pj_IP_MULTICAST_IF(void); 
     
    340353    /** Get #PJ_SO_SNDBUF constant */ 
    341354#   define pj_SO_SNDBUF()   PJ_SO_SNDBUF 
     355 
     356    /** Get #PJ_TCP_NODELAY constant */ 
     357#   define pj_TCP_NODELAY() PJ_TCP_NODELAY 
     358 
     359    /** Get #PJ_SO_REUSEADDR constant */ 
     360#   define pj_SO_REUSEADDR() PJ_SO_REUSEADDR 
    342361 
    343362    /** Get #PJ_IP_MULTICAST_IF constant */ 
Note: See TracChangeset for help on using the changeset viewer.