- Timestamp:
- 06/16/10 15:11:16 (2 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
Whitix/branches/netchannel/user/sdk/network/tcp/tcp_states.c
r2099 r2101 34 34 } 35 35 36 if (states[tcpSock->state] != NULL )36 if (states[tcpSock->state] != NULL /*&& (TcpGetTs() & 1)*/) 37 37 ret = states[tcpSock->state](tcpSock, header, buffer, length); 38 39 #if 0 40 else 41 printf("Dropped! (%u, %d)\n", length, tcpSock->state); 42 #endif 38 43 39 44 if (ret == TCP_ERROR) … … 61 66 ChanRecvBuffFree(tcpSock->channel, buffer); 62 67 63 /* Event handling */68 /* Event handling and general statistical update */ 64 69 if (!ret && tcpSock->socket) 65 70 { … … 70 75 } 71 76 77 if (tcpSock->remoteWindow < tcpSock->stats.minWin) 78 tcpSock->stats.minWin = tcpSock->remoteWindow; 79 80 if (tcpSock->remoteWindow > tcpSock->stats.maxWin) 81 tcpSock->stats.maxWin = tcpSock->remoteWindow; 82 72 83 return 0; 73 84 }
