|
-
Feb 13th, 2001, 10:01 PM
#1
Thread Starter
Addicted Member
Anyone know, how to find out how many bytes are being transferred / received, via VB?
-
Feb 14th, 2001, 05:06 PM
#2
Frenzied Member
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
-
Feb 14th, 2001, 07:09 PM
#3
Thread Starter
Addicted Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|