Welcome
Example Code
C and C++
Argument Parsing
Create Subprocess
Create Thread
Is Subprocess Done
Non-Blocking File (Unix)
Mutex (Lock)
TCP Server
Wait For File (Unix)
Python
Non-Blocking Read

Monju System Architects



C and C++

Language Overview
Hopefully the various C and C++ code examples provided here help you out. We are not huge fans of C and C++, but at least they are fast, and they could be worse. Hopefully the future will bring a compiled language that comprises more recent developments in programming theory... we shall see.

Most of the code here really just demonstrates basic C functionality and does not properly encapsulate this functionality in C++ objects. Nonetheless, the code uses C++ constructs such as 'new' and throw() and is thus listed under the category C and C++. It is left to the reader to encapsulate the C functionality into proper C++ objects.

We hope you find this code to be helpful.


Licensing

The code provided here may be altered and reused, but if you distribute or sell the code itself (not compiled versions of it), you must keep the copyright notice intact. If you are "internalizing" this code within your workplace, it should be sufficient to include something at the top that says that the text version of the code is not to be published or sold due to an external copyright. Otherwise, please keep the copyright notice included with the code files found within.