473,471 Members | 1,744 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Byte count from active network connection

Hi!

Is it possible to get the total amount of sent and recieved bytes on
the active network connection as shown when one double clicks on an
active connection in win2k and XP (which are the target operating
systems for my application)?

Basically I want to get numbers like BytesReceivedPerSec,
BytesSentPerSec and of course BytesTotalPerSec wich is available via
the Win32_PerfFormattedData_Tcpip_NetworkInterface class wich can be
reached via ManagementObjectSearcher. However, this class is not
available on Windows 2000.

Anybody tried this?

Kind regards
Christer
Jul 21 '05 #1
2 2357
Just write a C++ dll that uses the IPHelper interface

somaris
Jul 21 '05 #2
But the raw counter types are available in W2K (the cooked and fromatted
types derive from the Raw types).
Just use these and apply the formula corresponding to the counter type
qualifier.

Willy.
"Christer" <wi******@hotmail.com> wrote in message
news:7b**************************@posting.google.c om...
Hi!

Is it possible to get the total amount of sent and recieved bytes on
the active network connection as shown when one double clicks on an
active connection in win2k and XP (which are the target operating
systems for my application)?

Basically I want to get numbers like BytesReceivedPerSec,
BytesSentPerSec and of course BytesTotalPerSec wich is available via
the Win32_PerfFormattedData_Tcpip_NetworkInterface class wich can be
reached via ManagementObjectSearcher. However, this class is not
available on Windows 2000.

Anybody tried this?

Kind regards
Christer

Jul 21 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Jesse Engle | last post by:
i'm learning how to do some basic low-level network programming. the site i'm reading talks about "network byte order" and "host byte order". the thing is, it doesn't give an explanation as to what...
2
by: Edh | last post by:
Is there a system event or notification that I can catch in my application to know when any network connection has become active (WiFi, Dial Up, LAN etc...)? Example: I have a service that sits...
4
by: Matthew Groch | last post by:
Hi all, I've got a server that handles a relatively high number of concurrent transactions (on the magnitude of 1000's per second). Client applications establish socket connections with the...
5
by: rcolby | last post by:
Evening, Wondering if someone can point me in the right direction, on how I would compare a system.guid with a system.byte. system.guid (pulled from sql server table with a data type of...
2
by: Christer | last post by:
Hi! Is it possible to get the total amount of sent and recieved bytes on the active network connection as shown when one double clicks on an active connection in win2k and XP (which are the...
5
by: Anony Mous | last post by:
Coming off of 7.4.3 I've always used select count(*) from pg_stat_activity through the ODBC driver to obtain the number of connections to the db. I've found that with v8.0 Beta 1 that this...
4
by: ianyian | last post by:
hi experts, im doing some staff bween th the aspx + MS Word.chellcheck, and and which running on my ypc is no problem ( windows xp , activation by ASPNET ), buts someshow when i try to deploy to...
1
by: duraisridhar | last post by:
Hi All, My active connection created by my application from windows 2000 to Windows 2003 (or any linux machine) get closed as it receives WSAENOBUFS error . While I googled , I come to know that...
18
by: Arthur | last post by:
Hi All, I would like to get the name of the user given their networkID, is this something Active Directory would be useful for?(For intranet users) If so, can you please point me to some sample...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.