Skip to main content
gamedev.net
🔒 Locked

bytes sent over conection

Started by Emexus Sep 3, 2003 at 8:05 AM 3 replies 400+ views
Original Post
Emexus
Emexus
Hi All, Im thinking of writting a small application that will display the number of bytes sent/recived from my internet connection, should i be looking at winsock?? ive never done any programming to do with the internet so this is all new to me. if not winsock then what would be the best way of gaining access to the data sent information? any help is greatly appreciated. cheers
JonStelly
JonStelly
To get statistics about a network connection you''ll probably want to look into perfmon counters. Start by checking out the Performance Data Helper API.
Emexus
Emexus
Thanks for the reply JonStelly
im reading up on it now, just another quick question in order to use perfmon counters i will need to include #include <pdh.h>
is this correct?

cheers
JonStelly
JonStelly
Yes, you''ll need to include pdh.h and link with pdh.lib.

There are other ways to get at the perfmon data, it''s kept as binary structures in a special registry key, but the PDH API is probably the simplest way to deal with it.
Emexus
Emexus
Thats excellent thanks, im still reading through it, but im starting to understand it now

cheers

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.