Recently, the company's network is always slow.
When I was so upset, I came up with a small tool for online monitoring and latency testing.
In fact, both 360 and Jinshan have corresponding functions.
However, I am a code engineer. I am not used to the commercial atmosphere of 360, and Kingsoft is not angry.
Let's take a look at Kingsoft.
Pretty good.
Below is an example
Look, this MS is really inferior to my home
Alas...
The results are viewed.
Let's talk about functions,
In fact, the main function is
1. Obtain network card Traffic Information
MainCodeObtain network card Traffic
2. Ping speed (implemented by one thread) code: MFC Ping Baidu
It is worth mentioning that there is a difference in function Processing Between XP and win7 [in fact, it is similar to using cmd to ping Baidu. XP is in full English and win7 is in Chinese]
One small problem encountered was the method of adding message processing to the worker thread. Google quickly found a solution:
Add a message processing function and map it...
Code:
Begin_message_map (ctestnetmsthread, cwinthread) on_thread_message (wm_threadmsg_go, testnetms) end_message_map ()
In this way, you can receive messages from the dialog box,
Then, send a message to the dialog box. Needless to say, it is sendmessage.
In addition, the following small functions are implemented: Choose start, top, and move around the screen. Right-click the menu and choose...
Software: network speed monitoring v1.2