Results 1 to 3 of 3

Thread: Finding out the bytes sent/received in an Internet Connection

  1. #1

    Thread Starter
    Addicted Member cyberwarpy's Avatar
    Join Date
    Jan 2001
    Location
    Melbourne, Australia
    Posts
    200

    Question

    Anyone know, how to find out how many bytes are being transferred / received, via VB?

  2. #2
    Frenzied Member
    Join Date
    Aug 2000
    Location
    O!
    Posts
    1,177
    If you are using the Winsock control, the byte count is returned in the DataArrival routine.
    Code:
    Private Sub tcpClient_DataArrival(ByVal bytesTotal As Long)
    If you use the API function recv, the byte count is the return value.
    Code:
    Declare Function recv Lib "wsock32.dll" (ByVal s As Long, buf As Any, ByVal length As Long, ByVal flags As Long) As Long

  3. #3

    Thread Starter
    Addicted Member cyberwarpy's Avatar
    Join Date
    Jan 2001
    Location
    Melbourne, Australia
    Posts
    200

    Question Reply

    ccoder,

    That's nice. But I did not want information a single socket, but the actual Internet Connection on the OS. For e.g. The dialog box that shows up when you are connected to the ISP showing the bytes received/sent.

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