🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Counting sent/received bytes of a connection

#4616
From: Remy Lebeau (TeamB)
Date: Wed, 19 Jan 2005 01:14
18 lines
1802 bytes
"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: <41edb59b$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!feeder.enertel.nl!nntpfeed-01.ops.asmr-01.energis-idc.net!216.196.110.149.MISMATCH!border2.nntp.ams.giganews.com!nntp.giganews.com!pe2.news.blueyonder.co.uk!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail
References: <41ed57e3@newsgroups.borland.com> <41ed61a6$1@newsgroups.borland.com> <41ed684c@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: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com>
Newsgroups: borland.public.cppbuilder.internet.socket
References: <41ed57e3@newsgroups.borland.com> <41ed61a6$1@newsgroups.borland.com> <41ed684c@newsgroups.borland.com>
Subject: Re: Counting sent/received bytes of a connection
Date: Tue, 18 Jan 2005 17:14:15 -0800
Lines: 20
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1409
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409
NNTP-Posting-Host: 68.69.17.41
Message-ID: <41edb59b$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1106097563 68.69.17.41 (18 Jan 2005 17:19:23 -0800)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!feeder.enertel.nl!nntpfeed-01.ops.asmr-01.energis-idc.net!216.196.110.149.MISMATCH!border2.nntp.ams.giganews.com!nntp.giganews.com!pe2.news.blueyonder.co.uk!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail