Linux platform C ++ class library TINYCXX instructions

zhaozj2021-02-17  69

TinyCxx is a C class library under the Linux platform, which is encapsulated by the most commonly used techniques for Linux programming. Such as: LinuxThread, Socket, IPC (shared memory, semaphore), record lock, etc. At the same time, the base class of two process model frames is also provided, one for writing a non-block Socket program (similar to THTTPD, one process listening connection simultaneously processing requests); another program for writing the process pool (similar Apache Multiple processes simultaneously listen simultaneously, dynamically adjust the number of processes). In addition, there is a package called Tinycxx-Samples and Tinycxx simultaneously (requires another download), and some of TinyCxx-Samples provides examples of TinyCxx. Two of these examples use the base class of the process model frames mentioned above, and another example uses LinuXThread. These examples are very simple, is an Echo server program (returning to the client from the client receives a string). It should be noted that: 1. Tinycxx uses a large number of C Exception and STL, so developers interested in TinyCXX need some understanding of these content. 2. The threads provided by TinyCxx use LinuXThread's PTHREAD function library, so before compiling TinyCxx, you need to confirm that there is already installed on the machine (most Linux release is installed). In addition, because of the same reason, it is necessary to link the PTHREAD library link when using TinyCxx. For example: g -o foo foo.cpp -ltinycxx -lphread tinycxx class library download address: http://prdownloads.SourceForge.net/tinycxx/tinycxx-0.1.1.tar.gztinycxx-samples download address: http: //prdownloads . Sourceforge.net / tinycxx / tinycxx-samples-0.1.1.tar.gztinycxx Home: http://sf.net/projects/tinycxx

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

New Post(0)