- Timestamp:
- Jul 26, 2011 4:50:31 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Network/slirp/slirp.c
r38111 r38170 945 945 Log2(("connecting %R[natsock] engaged\n",so)); 946 946 STAM_COUNTER_INC(&pData->StatTCPHot); 947 #ifndef NAT_CONNECT_EXPERIMENT 947 #ifdef RT_OS_WINDOWS 948 WIN_TCP_ENGAGE_EVENT2(so, writefds, connectfds); 949 #else 948 950 TCP_ENGAGE_EVENT1(so, writefds); 949 #else950 # ifdef RT_OS_WINDOWS951 WIN_TCP_ENGAGE_EVENT2(so, writefds, connectfds);952 # else953 TCP_ENGAGE_EVENT1(so, writefds);954 # endif955 951 #endif 956 952 } … … 973 969 if ( CONN_CANFRCV(so) 974 970 && (SBUF_LEN(&so->so_snd) < (SBUF_SIZE(&so->so_snd)/2)) 975 #ifdef NAT_CONNECT_EXPERIMENT971 #ifdef RT_OS_WINDOWS 976 972 && !(so->so_state & SS_ISFCONNECTING) 977 973 #endif … … 1230 1226 && !CHECK_FD_SET(so, NetworkEvents, closefds) 1231 1227 #endif 1232 #ifdef NAT_CONNECT_EXPERIMENT 1233 # ifdef RT_OS_WINDOWS 1228 #ifdef RT_OS_WINDOWS 1234 1229 /** 1235 1230 * In some cases FD_CLOSE comes with FD_OOB, that confuse tcp processing. 1236 1231 */ 1237 1232 && !WIN_CHECK_FD_SET(so, NetworkEvents, closefds) 1238 # endif1239 1233 #endif 1240 1234 ) … … 1250 1244 { 1251 1245 1252 #ifdef DEBUG_vvl 1253 Assert(((so->so_state & SS_ISFCONNECTING) == 0)); 1254 #endif 1255 #ifdef NAT_CONNECT_EXPERIMENT 1246 #ifdef RT_OS_WINDOWS 1256 1247 if (WIN_CHECK_FD_SET(so, NetworkEvents, connectfds)) 1257 1248 { … … 1314 1305 */ 1315 1306 if ( CHECK_FD_SET(so, NetworkEvents, writefds) 1316 #if defined(NAT_CONNECT_EXPERIMENT)1307 #ifdef RT_OS_WINDOWS 1317 1308 || WIN_CHECK_FD_SET(so, NetworkEvents, connectfds) 1318 1309 #endif
Note:
See TracChangeset
for help on using the changeset viewer.