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.