- Timestamp:
- Feb 1, 2007 12:33:12 AM (18 years ago)
- Location:
- pjproject/trunk
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/aconfigure.ac
r909 r920 128 128 AC_CHECK_HEADER(netdb.h,[AC_DEFINE(PJ_HAS_NETDB_H,1)]) 129 129 AC_CHECK_HEADER(netinet/in.h,[AC_DEFINE(PJ_HAS_NETINET_IN_H,1)]) 130 AC_CHECK_HEADER(netinet/ip.h,[AC_DEFINE(PJ_HAS_NETINET_IP_H,1)]) 130 131 AC_CHECK_HEADER(setjmp.h,[AC_DEFINE(PJ_HAS_SETJMP_H,1)]) 131 132 AC_CHECK_HEADER(stdarg.h,[AC_DEFINE(PJ_HAS_STDARG_H,1)]) -
pjproject/trunk/pjlib/include/pj/compat/os_auto.h.in
r700 r920 51 51 #undef PJ_HAS_NETDB_H 52 52 #undef PJ_HAS_NETINET_IN_H 53 #undef PJ_HAS_NETINET_IP_H 53 54 #undef PJ_HAS_SETJMP_H 54 55 #undef PJ_HAS_STDARG_H -
pjproject/trunk/pjlib/include/pj/compat/socket.h
r699 r920 51 51 #if defined(PJ_HAS_NETINET_IN_H) && PJ_HAS_NETINET_IN_H != 0 52 52 # include <netinet/in.h> 53 #endif 54 55 #if defined(PJ_HAS_NETINET_IP_H) && PJ_HAS_NETINET_IP_H != 0 56 /* To pull in IPTOS_* constants */ 57 # include <netinet/ip.h> 53 58 #endif 54 59 -
pjproject/trunk/pjlib/include/pj/sock.h
r860 r920 93 93 extern const pj_uint16_t PJ_SOL_UDP; /**< UDP level. */ 94 94 extern const pj_uint16_t PJ_SOL_IPV6; /**< IP version 6 */ 95 96 97 /* IP_TOS 98 * 99 * Note: 100 * TOS CURRENTLY DOES NOT WORK IN Windows 2000 and above! 101 * See http://support.microsoft.com/kb/248611 102 */ 103 extern const pj_uint16_t PJ_IP_TOS; /**< IP_TOS optname in setsockopt() */ 104 105 106 /* 107 * IP TOS related constats. 108 * 109 * Note: 110 * TOS CURRENTLY DOES NOT WORK IN Windows 2000 and above! 111 * See http://support.microsoft.com/kb/248611 112 */ 113 extern const pj_uint16_t PJ_IPTOS_LOWDELAY; /**< Minimize delays */ 114 extern const pj_uint16_t PJ_IPTOS_THROUGHPUT; /**< Optimize throughput */ 115 extern const pj_uint16_t PJ_IPTOS_RELIABILITY; /**< Optimize for reliability*/ 116 extern const pj_uint16_t PJ_IPTOS_MINCOST; /**< "filler data" where slow 117 transmission does't matter */ 118 95 119 96 120 /** -
pjproject/trunk/pjlib/src/pj/sock_bsd.c
r860 r920 47 47 * The values here are indexed based on pj_sock_type 48 48 */ 49 const pj_uint16_t PJ_SOCK_STREAM 49 const pj_uint16_t PJ_SOCK_STREAM= SOCK_STREAM; 50 50 const pj_uint16_t PJ_SOCK_DGRAM = SOCK_DGRAM; 51 51 const pj_uint16_t PJ_SOCK_RAW = SOCK_RAW; … … 77 77 #endif 78 78 79 /* IP_TOS */ 80 #ifdef IP_TOS 81 const pj_uint16_t PJ_IP_TOS = IP_TOS; 82 #else 83 const pj_uint16_t PJ_IP_TOS = 1; 84 #endif 85 86 87 /* TOS settings (declared in netinet/ip.h) */ 88 #ifdef IPTOS_LOWDELAY 89 const pj_uint16_t PJ_IPTOS_LOWDELAY = IPTOS_LOWDELAY; 90 #else 91 const pj_uint16_t PJ_IPTOS_LOWDELAY = 0x10; 92 #endif 93 #ifdef IPTOS_THROUGHPUT 94 const pj_uint16_t PJ_IPTOS_THROUGHPUT = IPTOS_THROUGHPUT; 95 #else 96 const pj_uint16_t PJ_IPTOS_THROUGHPUT = 0x08; 97 #endif 98 #ifdef IPTOS_RELIABILITY 99 const pj_uint16_t PJ_IPTOS_RELIABILITY = IPTOS_RELIABILITY; 100 #else 101 const pj_uint16_t PJ_IPTOS_RELIABILITY = 0x04; 102 #endif 103 #ifdef IPTOS_MINCOST 104 const pj_uint16_t PJ_IPTOS_MINCOST = IPTOS_MINCOST; 105 #else 106 const pj_uint16_t PJ_IPTOS_MINCOST = 0x02; 107 #endif 108 109 79 110 /* optname values. */ 80 111 const pj_uint16_t PJ_SO_TYPE = SO_TYPE;
Note: See TracChangeset
for help on using the changeset viewer.