Quickly build the MMO Server framework (2) Network: Select boost Library

Source: Internet
Author: User

It seems that there are no online game servers on the Earth that do not support the internet.

The following articlesArticleWe will try to use the boost library to implement network-related functions of the server.
Alternative libraries include ace and libevent.
Ace is too fat. I personally dislike the practices implemented by standard containers.
Libevent is too thin, and other functions are not rich enough.
Boost is not fat or thin, compatible with and enhanced STL, a bunch of rich class libraries, Asio directly encapsulates the High-Performance Network concurrency model, you can also use the stream filter provided by OSS to compress and encrypt data (which will be mentioned later). It is also the first choice for cross-platform processing.
Boost is also uncomfortable. For example
Features are too complex. (No)
Some compilers do not support well. (The newer versions of GCC and vs support both. This is enough for online games. This can be an ostrich ...)
The starting curve is steep, and some functions are required.ProgramPersonnel have a deep understanding of C ++. (Reasonable functional division allows most programmers to write scripts, a few Write c ++, and a few to bond boost, so this article can be ignored)
There are too many templates, and a bunch of Mars may appear when compilation errors occur. (Endure)
There are too many templates and macros, and some implementations will lead to slow compilation and excessive expansion of executable files. (It is not a problem for online games. Continue the ostrich)
No homes, no income. Yes.

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.