… | |
… | |
177 | int fd; |
177 | int fd; |
178 | struct tcp_info tcpi; |
178 | struct tcp_info tcpi; |
179 | socklen_t len = sizeof (tcpi); |
179 | socklen_t len = sizeof (tcpi); |
180 | getsockopt (fd, IPPROTO_TCP, TCP_INFO, &tcpi, &len); |
180 | getsockopt (fd, IPPROTO_TCP, TCP_INFO, &tcpi, &len); |
181 | fd = 0 |
181 | fd = 0 |
|
|
182 | + tcpi.tcpi_snd_mss |
182 | + tcpi.tcpi_rtt |
183 | + tcpi.tcpi_rtt |
183 | + tcpi.tcpi_rttvar |
184 | + tcpi.tcpi_rttvar |
184 | + tcpi.tcpi_last_ack_recv |
185 | + tcpi.tcpi_last_ack_recv |
185 | + tcpi.tcpi_last_data_sent |
186 | + tcpi.tcpi_last_data_sent |
186 | + tcpi.tcpi_unacked; |
187 | + tcpi.tcpi_unacked; |