Linux C ++ class library tinycxx instructions

Source: Internet
Author: User
Linux platform C ++ class library tinycxx-Linux general technology-Linux programming and kernel information, the following is a detailed description. Tinycxx is a thread-safe C ++ class library on the linux platform. It encapsulates the most common linux programming technologies. Such as linuxthread, socket, IPC (shared memory, semaphore), record lock, and so on. At the same time, two base classes of Process Model frameworks are also provided. One is used to write non-blocking socket programs (similar to thttpd, one process listens to the connection and processes Requests simultaneously ); another program is used to compile the process pool (similar to apache, multiple processes listen to connections at the same time and dynamically adjust the number of processes ).

In addition, a package called tinycxx-samples is released at the same time as tinycxx (which needs to be downloaded separately). tinycxx-samples provides some examples of using tinycxx. Two examples use the base class of the process model framework mentioned above, and the other example uses linuxthread. These examples are very simple. They are an echo server program that returns strings from the client as they are ).

Note that:
1. tinycxx uses c ++ exception and stl in large quantities. Therefore, developers interested in tinycxx need to have some knowledge about these contents.

2. The Thread class provided by tinycxx uses the pthread function library of linuxthread. Therefore, before compiling tinycxx, make sure that pthread has been installed on the machine (by default, most linux releases have been installed ). In addition, for the same reason, when using tinycxx to compile your own program, you need to link the pthread library. Example: g ++-o foo. cpp-ltinycxx-lphread

Tinycxx Library: http://prdownloads.sourceforge.net/tinycxx/tinycxx-0.1.1.tar.gz
Tinycxx-samples: http://prdownloads.sourceforge.n... amples-0.1.1.tar.gz
Tinycxx home: http://sf.net/projects/tinycxx
Related Article

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.