Results 1 to 4 of 4

Thread: [VB6] Bandwidth Monitor (internet and lan)

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Nov 2008
    Location
    South Africa
    Posts
    17

    [VB6] Bandwidth Monitor (internet and lan)

    Hi all,

    Only source NO compiled EXE

    This app shows lan bandwidth in KB and internet bandwidth in KB.

    Also shows combined total.

    Please let me know what you think, I am sure it needs some minor adjustments but it works quite well.

    Cheers
    Dave
    Attached Files Attached Files

  2. #2
    VB For Fun Edgemeal's Avatar
    Join Date
    Sep 2006
    Location
    WindowFromPoint
    Posts
    4,255

    Re: [VB6] Bandwidth Monitor (internet and lan)

    Not sure how well it counts traffic but the CPU usage seems high, compiled its using around 30% on my 2.2GHz.


    Also might be nicer if it only updated like once per second.

  3. #3
    Frenzied Member Jim Davis's Avatar
    Join Date
    Mar 2001
    Location
    Mars base one Username: Jim Davis Password: yCrm33
    Posts
    1,284

    Re: [VB6] Bandwidth Monitor (internet and lan)

    It doesnt works for me This calling will gives -1 as a result.

    Code:
    ret = WSAIoctl(s, SIO_RCVALL, lngInBuffer, Len(lngInBuffer), _
    lngOutBuffer, Len(lngOutBuffer), lngBytesReturned, ByVal 0, ByVal 0)
    The calling values are, in order:
    1424, -1744830463, 1, 4, 0, 4, 0, 0, 0

    I have went thru all initializations in debug, line by line. I saw that it successfully identifies my ip address, that is i am using for internet. This is an Atheros miniPCI wifi card (on a Pci adaptor) i am using. There are also two lan ports in my pc, one is already connected to the notebook, for vpn.

  4. #4

    Thread Starter
    Junior Member
    Join Date
    Nov 2008
    Location
    South Africa
    Posts
    17

    Re: [VB6] Bandwidth Monitor (internet and lan)

    Hi,

    This was knocked together really quickly, so there will be a lot of bugs. At first I thought of using WMI to get sent/recieved but the problem there is its global sent/recieved. This app uses subnet anding to determine local and remote bandwidth.

    As for high cpu usage, thats because it basically inspects each network packet and then determines the size of them, I am sure if I work on it a bit more then I can find another way to get the packet size.

    I tested this on my notebook that also has an Atheros card... I get the same error. I wonder if its the different between ethernet and wireless packets.

    Will look into it all of the above

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width