Some open source stuff

xiaoxiao2021-03-06  38

Open source is really a good stuff, watching the code, not only improving your programming level, but also saves your own time.

Unfortunately, many famous open source libraries are all written by foreigners. I hope that Chinese people can have their own open source libraries.

Some useful open source libraries I have played (some I just played, so I can't introduce very deeply), I hope to help everyone.

1. The first is ACE. I want everyone to take a headache when designing a network program, especially the server-side architecture.

Use blocked or non-blocking, use synchronization or asynchronous, use a thread to a user or line city, SELECT efficiency is not high?

Under Windows I think most people use the completion of the port, the client uses a non-blocking method, although this design is the highest efficiency of Windows,

But what if the network is required to cross the platform? Linux Network Programming Volume 1 Chapter 27 provides a variety of server structural design, but it is limited to

Linux. If you want to design a cross-platform network library, then study ACE.

2, the next appearance should be UCL, an encryption algorithm. I am just simply used, I don't dare to say more.

3. Is it used to use XML? If there is no large-scale use, then you have always tried using XML as a configuration file.

Microsoft's Microsoft XML Core Services is very good, but I have not used it, I don't know if it is cross-platform.

Xerces, ICUs and DOMs you can learn.

4, introduce the open source project of the database class

Mysql and PostgreSQL as an open source than the relatively good relational database, I want everyone to hear it.

However, there are many embedded databases are also useful. This data does not provide service, which is useful as a single machine software.

Of course, you can also write the server and use it as a data store. The embedded database I use is Berkeley DB.

Just started playing LDAP, I don't know if it is not counting a database.

5, script related

Only simply use Lua, use it in many games. Because it can be separated from the program, it is not necessary to compile, so the program can do very flexible.

However, if you want to dynamically load, the efficiency problem needs to consider.

转载请注明原文地址:https://www.9cbs.com/read-76869.html

New Post(0)