Article View: borland.public.cppbuilder.internet.socket
Article #4529Re: Counting sent/received bytes of a connection
From: Bob Gonder
Date: Wed, 19 Jan 2005 17:35
Date: Wed, 19 Jan 2005 17:35
34 lines
2798 bytes
2798 bytes
Vladimir Stefanovic wrote: >Thanks for the answer. I thought that there was some >simple solution, because when the tray identification >of a connection (two monitors) is active, and I click on >it I can see bytes/packets that are sent/received. I'm afraid I know nothing about this, but searching MSDN for "connection statistics" brought up a couple interesting functions... http://tinyurl.com/5vrsu http://msdn.microsoft.com/library/default.asp?url=/library/en-us/rras/rras/ras_server_and_port_administration_ras.asp http://tinyurl.com/46lpy http://msdn.microsoft.com/library/default.asp?url=/library/en-us/rras/rras/rasadminportgetinfo.asp The RasAdminPortGetInfo function retrieves information about a specified port on a specified server. [This function is provided only for backward compatibility with Windows NT Server 4.0. It returns ERROR_CALL_NOT_IMPLEMENTED on Windows Server 2003 family. Applications should use the MprAdminPortGetInfo function.] Also: Keeping Statistics http://tinyurl.com/6h8ag http://msdn.microsoft.com/library/default.asp?url=/library/en-us/network/hh/network/204trnsf_5f97c1be-3ac9-48ee-9e18-2a3445c0016e.xml.asp?frame=true which links to | Obtaining and Setting Miniport Driver Information and NDIS Support for WMI http://tinyurl.com/6vrpx http://msdn.microsoft.com/library/default.asp?url=/library/en-us/network/hh/network/205mpinfo_ab586ccb-6399-420f-89d9-6a32b20b9e6f.xml.asp problems with these as far as I can see, would be if you are connected via one nic to both the internet and an intranet, then the statistics would be for both. But if you have seperate nics or no network, then this might be easier.
Technical Details
Message-ID:
<995tu0hulufecdjv0i3iivcq5mknm0q5vd@4ax.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!gatel-ffm!gatel-ffm!194.25.134.126.MISMATCH!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<41ed57e3@newsgroups.borland.com> <41ed61a6$1@newsgroups.borland.com> <41ed684c@newsgroups.borland.com> <41edb59b$1@newsgroups.borland.com> <41ee8cdb@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,9095fe533f7160b3 X-Google-Attributes: gid11508e,public X-Google-Language: ENGLISH,ASCII-7-bit From: Bob Gonder <notbg@notmindspring.invalid> Newsgroups: borland.public.cppbuilder.internet.socket Subject: Re: Counting sent/received bytes of a connection Date: Wed, 19 Jan 2005 09:35:36 -0800 Organization: MindSpring Enterprises, Inc. Reply-To: notbg@notmindspring.invalid Message-ID: <995tu0hulufecdjv0i3iivcq5mknm0q5vd@4ax.com> References: <41ed57e3@newsgroups.borland.com> <41ed61a6$1@newsgroups.borland.com> <41ed684c@newsgroups.borland.com> <41edb59b$1@newsgroups.borland.com> <41ee8cdb@newsgroups.borland.com> X-Newsreader: Forte Agent 1.93/32.576 English (American) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 69.69.91.123 X-Trace: newsgroups.borland.com 1106156133 69.69.91.123 (19 Jan 2005 09:35:33 -0800) Lines: 36 Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!gatel-ffm!gatel-ffm!194.25.134.126.MISMATCH!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail