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/src/pjlib-test/sock.c

    r2863 r2946  
    168168    /* pj_gethostaddr() */ 
    169169 
     170    /* Various constants */ 
     171#if !defined(PJ_SYMBIAN) || PJ_SYMBIAN==0 
     172    if (PJ_SOL_IP==0xFFFF) return -5500; 
     173    if (PJ_SOL_TCP==0xFFFF) return -5510; 
     174    if (PJ_SOL_UDP==0xFFFF) return -5520; 
     175    if (PJ_SOL_IPV6==0xFFFF) return -5530; 
     176 
     177    if (PJ_SO_TYPE==0xFFFF) return -5540; 
     178    if (PJ_SO_RCVBUF==0xFFFF) return -5550; 
     179    if (PJ_SO_SNDBUF==0xFFFF) return -5560; 
     180    if (PJ_TCP_NODELAY==0xFFFF) return -5570; 
     181    if (PJ_SO_REUSEADDR==0xFFFF) return -5580; 
     182 
     183    if (PJ_MSG_OOB==0xFFFF) return -5590; 
     184    if (PJ_MSG_PEEK==0xFFFF) return -5600; 
     185#endif 
    170186 
    171187    return 0; 
Note: See TracChangeset for help on using the changeset viewer.