Hi there, I share a cable connection in between two computers using a router. I'd like to write a little Java programs that constantly shows the bandwidth usage of each computer. i.e. I'd like to see how much data is uploaded over the cable connection from say my mom's computer. I'd like to have this as a little diagnostic tool. Any ideas about how this can be done? Thanks
(p.s. I have some background in internet programing using Java, so feel free to go all out technical)
I think you'd have to get into some pretty low level APIs in your TCP-IP stack or even hardware drivers. Java likely won't do that kind of thing directly as it is OS and hardware independent. You might be able to do the low level monitoring in C/C++ and put a Java user interface or business layer on top of that with JNI.
Have you ever seen any code that does this kind of thing?
A good question is never answered. It is not a bolt to be tightened into place but a seed to be planted and to bear more seed toward the hope of greening the landscape of the idea. John Ciardi
posted 15 years ago
No Sir I really haven't. I was more thinking of some already implemented class\methods that would carry out this operation. But anyway thank for replying.