job.answiz.com
  • 4
Votes
name

Linux netstat shows send and receive queue sizes.

How do I get this info under Windows, specifically Server 2003?

Now, the window sizes are different per socket! The settings per interface only represent the default-values.

I know of no way to view the window size of each socket. In Solaris, this can be seen with "netstat".

  • 0
Reply Report

What you want might be the results of the WinSock API function calls getsockopt:

  • SO_RCVBUF The total per-socket buffer space reserved for receives. This is unrelated to SO_MAX_MSG_SIZE and does not necessarily correspond to the size of the TCP receive window.

  • SO_SNDBUF The total per-socket buffer space reserved for sends. This is unrelated to SO_MAX_MSG_SIZE and does not necessarily correspond to the size of a TCP send window.

The problem is that is can be asked for sockets whose handle you know. Querying from outside seems to be difficult, have a look at the sysinternals TcpView tool. Mark Russinovich is really a crack and even he does not provide the info in his tool. I am pretty sure he would have added a column if he had a mean to get the values easily...

I guess some kernel driver could help drilling down into the system but did not find any available tool. The sizes can be set on a per socket base so that global values have no meaning...

  • 0
Reply Report