I am trying to get the available bandwidth from my PC.
Suppose I’m streaming a video at 2 Mbps and my network card is of 100 Mbps, my program should tell me that 98 Mbps is available.
Is it easy to do in C++ or Python? And how can I find the available bandwidth using any of the suggested programming language. Any help will be appreciated.
NLoad is written in C++ and supports monitoring bandwidth use on various Unix like operating systems.
You might find some inspiration at https://github.com/revnode/nload