943,899 Members | Top Members by Rank

Ad:
Sep 19th, 2005
0

hi

Expand Post »
hi
i try building a bandwith monitor with the report of total
connections to/from my pc so far i do a report of ip source/destination
but now i want to know the lenght of data that belong to each ip.
for example: i want to know de down/upload of each ip

i download examples of bandwith monitor but none of them have that information down/upload of each ip

any one can help me?
thanks a lot
bybruno
Reputation Points: 10
Solved Threads: 0
Newbie Poster
bybruno is offline Offline
4 posts
since Sep 2005
Sep 20th, 2005
0

Re: hi

What object are you using for the ip information. There should be a method there to calculate the bytes used.
Reputation Points: 20
Solved Threads: 5
Junior Poster
jwshepherd is offline Offline
123 posts
since Jun 2005
Sep 21st, 2005
0

Re: hi

here is some part of the code that get the ip:

Private Declare Function GetProcessHeap Lib "kernel32" () As Long
Private Declare Function AllocateAndGetTcpExTableFromStack Lib "iphlpapi.dll" (pTcpTableEx As Any, ByVal bOrder As Long, ByVal heap As Long, ByVal zero As Long, ByVal flags As Long) As Long
Private Declare Sub CopyMemory Lib "kernel32" Alias "RtlMoveMemory" (Destination As Any, Source As Any, ByVal Length As Long)

''there we get the ip
CopyMemory nRemoteAddr, ByVal pTablePtr + (pDataRef + 16), 4

Public Function GetIPAddress(dwAddr As Long) As String
Dim arrIpParts(3) As Byte
CopyMemory arrIpParts(0), dwAddr, 4
GetIPAddress = CStr(arrIpParts(0)) & "." & _
CStr(arrIpParts(1)) & "." & _
CStr(arrIpParts(2)) & "." & _
CStr(arrIpParts(3))
End Function



''and the result display there
MsgBox GetIPAddress(nRemoteAddr)

now i want to know who get the down and upload information
for that ip.


can you help me?
thanks a lot
bybruno
Reputation Points: 10
Solved Threads: 0
Newbie Poster
bybruno is offline Offline
4 posts
since Sep 2005
Sep 22nd, 2005
0

Re: hi

It looks like in the CopyMemory function the ByVal is the length of the data passed from destination to source or vice versa. Check this value debug.print byVal in the function to see what it contains with different pings , and arps.
Reputation Points: 20
Solved Threads: 5
Junior Poster
jwshepherd is offline Offline
123 posts
since Jun 2005
Oct 3rd, 2005
0

Re: hi

please tell me how to display the previous month
Reputation Points: 10
Solved Threads: 0
Newbie Poster
srjtpl is offline Offline
2 posts
since Sep 2005
Oct 3rd, 2005
0

Re: hi

Text1.Text = MonthName(Month(DateAdd("m", -1, Date)))
Reputation Points: 20
Solved Threads: 5
Junior Poster
jwshepherd is offline Offline
123 posts
since Jun 2005
Oct 4th, 2005
0

Re: hi

Hi

I Have Some Problem In Visual Basic Code. I Have Two Dttpicker - 1) From And 2) To . There Are Three Text Box - 1) First Text Box Directly Goes To From Date (first Dtpicker) 2) Second Goes To Date(second Dtpicker) 3) Difference Between Two Date(no Of Leave). Our Validation Is When No Of Leave Exceeds 30 Days It Will Automatically Display The Message Box Displays "leave Without Pay" . Please Help Help Me.

Thanking You

Surojit
Reputation Points: 10
Solved Threads: 0
Newbie Poster
srjtpl is offline Offline
2 posts
since Sep 2005

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Visual Basic 4 / 5 / 6 Forum Timeline: How to set user rights in ms.access from vb6
Next Thread in Visual Basic 4 / 5 / 6 Forum Timeline: If functions





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC