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/pj/sock_symbian.cpp

    r2771 r2946  
    4848const pj_uint16_t PJ_SOCK_RDM   = 0xFFFF; 
    4949 
    50 /* setsockop() is not really supported. */ 
     50/* we don't support setsockopt(), these are just dummy values */ 
    5151const pj_uint16_t PJ_SOL_SOCKET = 0xFFFF; 
    5252const pj_uint16_t PJ_SOL_IP     = 0xFFFF; 
     
    6161const pj_uint16_t PJ_IPTOS_RELIABILITY  = 0; 
    6262const pj_uint16_t PJ_IPTOS_MINCOST      = 0; 
     63 
     64/* Misc */ 
     65const pj_uint16_t PJ_TCP_NODELAY = 0xFFFF; 
     66const pj_uint16_t PJ_SO_REUSEADDR = 0xFFFF; 
    6367 
    6468/* ioctl() is also not supported. */ 
Note: See TracChangeset for help on using the changeset viewer.