🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.internet.socket
Article #4527

Re: Counting sent/received bytes of a connection

#4527
From: Vladimir Stefanovic
Date: Wed, 19 Jan 2005 16:37
36 lines
2202 bytes
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.

Obviously, much more involving mechanism is working
in the background.


-- 
Best regards,
Vladimir Stefanovic
"Remy Lebeau (TeamB)" <no.spam@no.spam.com> wrote in message 
news:41edb59b$1@newsgroups.borland.com...
>
> "Vladimir Stefanovic" <antivari@po.sbb.co.yu> wrote in message
> news:41ed684c@newsgroups.borland.com...
>
>> I pay to the internet provider price per megabyte.
>>
>> I was wandering how can *I* make software that will count
>> how many bytes were sent/received through the connection
>> while I was browsing internet.
>
> You will have to hook every socket that is created, and keep a running 
> count
> of every byte that is transmitted/received for every packet of every
> application.  Such hooking requires low-level programming - specifically 
> you
> have you write an NDIS driver that hooks WinSock directly.  BCB does not
> support such development, you need to use Microsoft's DDK instead.
>
>
> Gambit
>
> 
Technical Details
Message-ID: <41ee8cdb@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <41ed57e3@newsgroups.borland.com> <41ed61a6$1@newsgroups.borland.com> <41ed684c@newsgroups.borland.com> <41edb59b$1@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: "Vladimir Stefanovic" <antivari@po.sbb.co.yu>
Newsgroups: borland.public.cppbuilder.internet.socket
References: <41ed57e3@newsgroups.borland.com> <41ed61a6$1@newsgroups.borland.com> <41ed684c@newsgroups.borland.com> <41edb59b$1@newsgroups.borland.com>
Subject: Re: Counting sent/received bytes of a connection
Date: Wed, 19 Jan 2005 17:37:57 +0100
Lines: 38
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
X-RFC2646: Format=Flowed; Original
NNTP-Posting-Host: 82.117.212.65
Message-ID: <41ee8cdb@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1106152667 82.117.212.65 (19 Jan 2005 08:37:47 -0800)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail