开发者

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

开发者 https://www.devze.com 2022-12-14 21:00 出处:网络
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 \"pa

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 us开发者_如何学Ces 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.


http://msdn.microsoft.com/en-us/library/bb485738(VS.85).aspx

Vista apparently has this, which is probably your best bet (that was just a quick google search)

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号