开发者

How to read TCP window size with windows sockets?

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜