开发者

How to read TCP window size with windows sockets?

开发者 https://www.devze.com 2022-12-10 17:21 出处:网络
Right now im working on a light cliente/server application written in C to check some problems with many computers sending data with TCP to a server through a switch.

Right now im working on a light cliente/server application written in C to check some problems with many computers sending data with TCP to a server through a switch.

I need to read some of the flow control variables, like for example the window size, number of retransmitted packets, etc.

In linux i do it with getsockopt, method i开发者_C百科've read here: http://linuxgazette.net/136/pfeiffer.html but i can't find an equivalent method in the windows socket api.


If you're using Vista or above then it looks like GetPerTcpConnectionEStats() might give you what you need. See here: http://msdn.microsoft.com/en-us/library/bb485738(VS.85).aspx

However, I've never used it and the docs look like they could be better...

0

精彩评论

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