Determining the Total Network Buffer Space Available for TCP/UDP Sockets
Posted on 2010-11-24
I have a program that has multiple TCP and UDP socket connections. In my program, I set the send and receive buffer size for the TCP sockets and the receive buffer size for the UDP sockets using setsockopt. However, I was wondering the following::
* How can I determine how much total network buffer space is available at program startup, so that I can determine how to divide it up between my various sockets? Right now, I use getsockopt to see what the send or receive buffer size is set for an individual socket, but it would be nice to see the total available before creating any sockets.
* Where is the network buffer space physically located?
I am programming in C/C++ using MS Visual C++ 2010 Express on a windows 7 machine.