LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 05-03-2011, 03:43 AM   #1
z99
Member
 
Registered: Aug 2009
Location: Iran-Sari
Distribution: CentOS,Fedora,Slitaz
Posts: 136

Rep: Reputation: 20
how to calculate the amount of data had been download


hi,
i'm trying to write a program with c socket programming,
what i am trying to reach is a program which will calculate a computer's downloaded data from the internet,just to know how much he/she download?
would anyone please just give the idea of how to do this!
thanks in advance
 
Old 05-03-2011, 03:58 AM   #2
JohnGraham
Member
 
Registered: Oct 2009
Posts: 467

Rep: Reputation: 139Reputation: 139
libpcap is probably what you're after - it'll allow you (so long as you have root privileges) to see all the traffic that goes over the network on any given interface (or all interfaces - though that means you'll also get the loopback interface, which I'm not sure you'll want) and so see how much there is.
 
1 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Software to see the amount of data downloaded mohitdaksh Linux - Software 1 08-03-2010 07:19 PM
measure the amount of usb data mdb1526 Linux - Newbie 1 01-21-2010 10:50 AM
Tracking amount of sent/received data MartenH Linux - Newbie 3 04-01-2009 01:05 PM
managing the amount of data that is logged paranoid times Linux - Security 3 02-09-2007 02:46 PM
calculate amount of data transferred to certain ip addresses dtra Linux - Software 0 11-07-2005 07:57 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 11:25 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration