Example of a PUPS/P3 server application sources
Here are a couple of examples of PUPS/P3 server applications, which will show
you just how easy it is to incorporate PUPS/P3 functionality into your code. In fact, in order to take
advantage of PUPS/P3 builtin functionality you only need to add four function calls to your program:
Example of a PUPS/P3 dynamic link library sourceIn addition to monotlithic pre-compiled applications, PUPS/P3 also supports dynamic link libraries (DLLs) which are implemented via the POSIX dl interface). An example DLL is included here. Making a DLL is easy. Just define a set of orifice functions using the example as a template. Then type gcc -c dll.o dll.c followed by share dll.o dll.so. share is a utility which generated shared libraries (.so files from object (.o) files. share is linker dependent, the version shipped with the standard PUPS/P3 distribution is at present COFF/ ELF specific and will not run on Darwin which uses a radically different linking scheme. PUPS/P3 (c) Mark A. O'Neill 2007 |