Welcome to HBH! If you have tried to register and didn't get a verification email, please using the following link to resend the verification email.

measure network traffic c++


ghost's Avatar
0 0

hej! i would like to write a code in visual c++ what could measure the network traffic. has anyone any ideas? where could i find some information about how to implement this?


ghost's Avatar
0 0

It's quite easy using the .NET libraries. But if you want to stray away from that, you'll probably have to find a way to listen to the network adapter.

It might be similar to writing a sniffer … not sure though. Check out codeproject.com or just google it.

I'm sure someone's written something you can example from to learn.


ghost's Avatar
0 0

.NET includes the NetworkMonitor and Network Adapter classes for you. You could prob write the software in < 40 lines of code lol