Changeset 2946 for pjproject/trunk/pjlib/src/pj/sock_bsd.c
- Timestamp:
- Oct 15, 2009 3:48:20 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjlib/src/pj/sock_bsd.c
r2394 r2946 61 61 #ifdef SOL_IP 62 62 const pj_uint16_t PJ_SOL_IP = SOL_IP; 63 #elif defined(PJ_WIN32) && PJ_WIN32 64 const pj_uint16_t PJ_SOL_IP = IPPROTO_IP; 63 65 #else 64 66 const pj_uint16_t PJ_SOL_IP = 0xFFFF; 65 67 #endif /* SOL_IP */ 68 66 69 #if defined(SOL_TCP) 67 70 const pj_uint16_t PJ_SOL_TCP = SOL_TCP; 68 71 #elif defined(IPPROTO_TCP) 69 72 const pj_uint16_t PJ_SOL_TCP = IPPROTO_TCP; 73 #elif defined(PJ_WIN32) && PJ_WIN32 74 const pj_uint16_t PJ_SOL_TCP = IPPROTO_TCP; 70 75 #else 71 76 const pj_uint16_t PJ_SOL_TCP = 0xFFFF; 72 77 #endif /* SOL_TCP */ 78 73 79 #ifdef SOL_UDP 74 80 const pj_uint16_t PJ_SOL_UDP = SOL_UDP; 81 #elif defined(PJ_WIN32) && PJ_WIN32 82 const pj_uint16_t PJ_SOL_UDP = IPPROTO_UDP; 75 83 #else 76 84 const pj_uint16_t PJ_SOL_UDP = 0xFFFF; 77 #endif 85 #endif /* SOL_UDP */ 86 78 87 #ifdef SOL_IPV6 79 88 const pj_uint16_t PJ_SOL_IPV6 = SOL_IPV6; 89 #elif defined(PJ_WIN32) && PJ_WIN32 90 const pj_uint16_t PJ_SOL_IPV6 = IPPROTO_IPV6; 80 91 #else 81 92 const pj_uint16_t PJ_SOL_IPV6 = 0xFFFF; 82 #endif 93 #endif /* SOL_IPV6 */ 83 94 84 95 /* IP_TOS */ … … 117 128 const pj_uint16_t PJ_SO_RCVBUF = SO_RCVBUF; 118 129 const pj_uint16_t PJ_SO_SNDBUF = SO_SNDBUF; 130 const pj_uint16_t PJ_TCP_NODELAY= TCP_NODELAY; 131 const pj_uint16_t PJ_SO_REUSEADDR= SO_REUSEADDR; 132 119 133 /* Multicasting is not supported e.g. in PocketPC 2003 SDK */ 120 134 #ifdef IP_MULTICAST_IF
Note: See TracChangeset
for help on using the changeset viewer.