How to count traffic (bytes sent/received) on network card, like RRAS Admin does it? I have not found mpr* API function for this purpose.
Printable View
How to count traffic (bytes sent/received) on network card, like RRAS Admin does it? I have not found mpr* API function for this purpose.
do u want stats for traffic sent using a particular protocol like TCP/IP or every kind of traffic?
Only tcp/ip traffic.
only a transport provider could do such a thing. i mean only the tcp/ip drivers could count the bytes sent and recieved. there are some special drivers which have an api that let u hook ur routines with the driver. try these.
btw u can count the no of bytes recieved by using a RAW socket.