Source code of a lightweight Network Communication Development Library

Source: Internet
Author: User

A Network Communication Development Library (Mnet). If you are interested, you can download it.
The socket functions of TCP and UDP are encapsulated, and three Winsock I/O models, including port completion, wsaeventselect, and select, are encapsulated. Combined with the thread pool + Memory Pool Mode, high concurrency is supported.
Visual Studio 2005 is used for compilation.

Source codeIncluded in the provided sample project.

Briefly describe the sample project:
It simulates 3000 concurrent client connections. Each connection sends 3000 files to the server at the same time, and the server receives the files and stores them in the receive directory.
Mnet_test.sln is the main solution file, which can be opened directly with Visual Studio.
Mnetdll: Contains mlib and Mnet library, where mlib Technical Manual word Version Download:
CHM download:
Server: testing serverProgram
Client: client program for testing

Test method:
Run server.exeand client.exe in the output directory. The files used for testing are in the same directory. If the client connection fails, modify the TCP Parameters of the Registry. For more information, seeArticle: Http://

Note: Due to personal time, energy, and level constraints, there must be many shortcomings. Please forgive me.

Mnet Technical Documentation download: CHM Version Download:
Sample project SourceCodeDownload:


Technical Discussion QQ: 6658306

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: 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.