How to get at TCP RTT on Windows (Linux TCP_INFO) as an user

Posted by FredAlkin on Stack Overflow See other posts from Stack Overflow or by FredAlkin
Published on 2009-12-23T00:50:08Z Indexed on 2010/03/19 5:01 UTC
Read the original article Hit count: 135

Filed under:
|
|
|

I am porting a streaming TCP app from Linux to Windows.
The app streams real-time audio data using a preexisting TCP protocol (so switching to UDP isn't an option). Further, I wish to avoid being "part of the problem" and requiring Administrator rights.

The Linux code uses getsockopt(... ,SOL_TCP, TCP_INFO, ..) to get the RTT (round trip time) information from the TCP connection. The application level uses this to throttle the amount of data sent over the connection (apparently to balance quality with latency).

Is there an equivalent to TCP_INFO on WIndows?
(google tells me that Win2K and later supports "TCP Timestamps" which would provide this information, but I've yet to find a way to get at it.

Thanks in advance.

© Stack Overflow or respective owner

Related posts about tcp

Related posts about Windows