Share a newly written tool to test the network speed and latency...

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.