- Timestamp:
- Jul 19, 2011 4:36:48 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Network/slirp/slirp.c
r37935 r38043 183 183 # define closefds_win FD_CLOSE 184 184 # define closefds_win_bit FD_CLOSE_BIT 185 # define connectfds_win FD_CONNECT 186 # define connectfds_win_bit FD_CONNECT_BIT 185 187 186 188 # define closefds_win FD_CLOSE … … 200 202 #define TCP_ENGAGE_EVENT2(so, fdset1, fdset2) \ 201 203 DO_ENGAGE_EVENT2((so), fdset1, fdset2, tcp) 204 205 #ifdef RT_OS_WINDOWS 206 # define WIN_TCP_ENGAGE_EVENT2(so, fdset, fdset2) TCP_ENGAGE_EVENT2(so, fdset1, fdset2) 207 #else 208 # define WIN_TCP_ENGAGE_EVENT2(so, fdset, fdset2) do{}while(0) 209 #endif 202 210 203 211 #define UDP_ENGAGE_EVENT(so, fdset) \ … … 933 941 Log2(("connecting %R[natsock] engaged\n",so)); 934 942 STAM_COUNTER_INC(&pData->StatTCPHot); 943 #ifndef NAT_CONNECT_EXPERIMENT 935 944 TCP_ENGAGE_EVENT1(so, writefds); 945 #else 946 # ifdef RT_OS_WINDOWS 947 WIN_TCP_ENGAGE_EVENT2(so, writefds, connectfds); 948 # else 949 TCP_ENGAGE_EVENT1(so, writefds); 950 # endif 951 #endif 936 952 } 937 953 … … 1159 1175 || WIN_CHECK_FD_SET(so, NetworkEvents, acceptds)) 1160 1176 { 1177 #ifdef DEBUG_vvl 1178 Assert(((so->so_state & SS_ISFCONNECTING) == 0)); 1179 #endif 1161 1180 /* 1162 1181 * Check for incoming connections … … 1210 1229 * Check sockets for writing 1211 1230 */ 1212 if (CHECK_FD_SET(so, NetworkEvents, writefds)) 1231 if ( CHECK_FD_SET(so, NetworkEvents, writefds) 1232 #if defined(NAT_CONNECT_EXPERIMENT) 1233 || WIN_CHECK_FD_SET(so, NetworkEvents, connectfds) 1234 #endif 1235 ) 1213 1236 { 1214 1237 /*
Note:
See TracChangeset
for help on using the changeset viewer.