… | |
… | |
153 | tcpi.tcpi_snd_ssthresh, tcpi.tcpi_snd_cwnd, tcpi.tcpi_advmss, tcpi.tcpi_pmtu, tcpi.tcpi_advmss, |
153 | tcpi.tcpi_snd_ssthresh, tcpi.tcpi_snd_cwnd, tcpi.tcpi_advmss, tcpi.tcpi_pmtu, tcpi.tcpi_advmss, |
154 | |
154 | |
155 | tcpi.tcpi_snd_cwnd - (tcpi.tcpi_unacked - tcpi.tcpi_sacked)); |
155 | tcpi.tcpi_snd_cwnd - (tcpi.tcpi_unacked - tcpi.tcpi_sacked)); |
156 | #endif |
156 | #endif |
157 | |
157 | |
|
|
158 | // fast-time-out a player by checking for missign acks |
158 | // do this only when player is active |
159 | // do this only when player is active |
159 | if (pl && pl->active |
160 | if (pl && pl->active |
160 | && tcpi.tcpi_last_ack_recv > int (SOCKET_TIMEOUT * 1000)) |
161 | && tcpi.tcpi_last_ack_recv > int (SOCKET_TIMEOUT * 1000)) |
161 | { |
162 | { |
162 | send_msg (NDI_RED | NDI_REPLY, "connection-timeout", "safety disconnect due to tcp/ip timeout (no packets received)"); |
163 | send_msg (NDI_RED | NDI_REPLY, "connection-timeout", "safety disconnect due to tcp/ip timeout (no packets received)"); |