Difference between revisions of "Peerd.c"
m |
(using args) |
||
| Line 8: | Line 8: | ||
#include <string.h> | #include <string.h> | ||
| − | void main(int argc, char *argv | + | void main(int argc, char **argv) { |
#include "file.c" // Logging and file read/write | #include "file.c" // Logging and file read/write | ||
| Line 24: | Line 24: | ||
while(nodeReduce(ROOT)); | while(nodeReduce(ROOT)); | ||
| + | |||
| + | //for (i=0; i<argc; i++) printf("argv[%d]: %s$\n", i, argv[i]); | ||
} | } | ||
Revision as of 10:52, 6 July 2006
// This article and all its includes are licenced under LGPL // http://www.gnu.org/copyleft/lesser.html
- include <types.h>
- include <unistd.h>
- include <stdlib.h>
- include <stdio.h>
- include <string.h>
void main(int argc, char **argv) {
#include "file.c" // Logging and file read/write #ifdef WINDOWS #include "servicate.c" // Make into a service for Win32 #else #include "daemonise.c" // Make into a daemon for Linux and OSX #endif #include "listSpace.c" // ListSpace function declarations and initialisation #include "nodeSpace.c" // NodeSpace function declarations and initialisation #include "serialise.c" // Nodal-to-text and visa-versa #include "interface.c" // Layer model (currently bitmap/imagemap-based) #include "server.c" // Set up listening socket and declare serverIterate #include "nodalHusk.c" // Build initial nodal environment
while(nodeReduce(ROOT));
//for (i=0; i<argc; i++) printf("argv[%d]: %s$\n", i, argv[i]);
}



