Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Bandwidth utilization  RSS feed

 
sharingan reddy
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi guys how can i get the no of bytes sent or received form the computer ?
 
Rob Spoor
Sheriff
Posts: 20893
81
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can't without embedding code into the network card drivers. I believe Pcap does that, and several programs use pcap instead of doing it directly.

Fortunately, there is a Java interface for Pcap: Jpcap. Try that.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!