how to detect data being uploaded ?
Printable View
how to detect data being uploaded ?
The rest should bee easy to figure out. Just check if the value changed and you will know that something is being uploaded.Code:Dim properties As IPGlobalProperties = IPGlobalProperties.GetIPGlobalProperties()
Dim stat As IcmpV4Statistics = properties.GetIcmpV4Statistics()
Console.WriteLine(stat.MessagesSent)
Console.ReadLine()
Does that not tell you of any message sent? So a html page request would also count as an upload.
I don't know, obviously moti din't even try googling it, so I did and that is what I got. The other way is monitoring traffic on ports which i don't know if that is possible, and the framework does not have that functionality built in. You could also try Monitoring applications traffic but that is also not in the framework although I have seen it been done in a .net app.
the var properties isn't used in the code, or so it seems ?
I am speechless