Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

Stamf

Received Data

This topic is 5744 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

G''day all, I have a question regarding received data from the internet, is there a C++ function that returns the amount of downloaded (and uploaded if possible) bytes since your connection? If so, I''d be ever so grateful if you told me the information, Thanks!

Share this post


Link to post
Share on other sites
Advertisement
No. C++ knows nothing about Internet. Your operating system might, but without more information about it, I can only suggest you check its documentation.


[ Start Here ! | How To Ask Smart Questions | Recommended C++ Books | C++ FAQ Lite | Function Ptrs | CppTips Archive ]
[ Header Files | File Format Docs | LNK2001 | C++ STL Doc | STLPort | Free C++ IDE | Boost C++ Lib | MSVC6 Lib Fixes ]

Share this post


Link to post
Share on other sites
Err,
This is a little vage, but does this help.

There is no straight function to return that data.

If your talking all data to and from your PC since start up (or connection), Then I know of no way under windows.
Under linux you could use ifconfig from a command line and pars the results.

If its just from your own program then you could just keep a count of how many byets you write and read from the socket.
This is if your doing networking the basic way and actually using sockets.

just my 2 cents.

Armand

Share this post


Link to post
Share on other sites
Thanks guys, btw, I meant bytes since connection.

I''m on WinXP Pro but if its a bit advanced like that, it definately isn''t for a newbie programmer like myself lol.

Thanks again people!

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!