Difference between revisions of "Peerd.c"
m |
(add nodal reduction loop) |
||
| Line 21: | Line 21: | ||
#include "nodalHusk.c" // Actual nodal content and predeclared's | #include "nodalHusk.c" // Actual nodal content and predeclared's | ||
#include "interface.c" // Layer model (currently bitmap/imagemap-based) | #include "interface.c" // Layer model (currently bitmap/imagemap-based) | ||
| − | #include "server.c" // | + | #include "server.c" // Set up listening socket and declare serverIterate |
| − | + | // Main nodal reduction loop | |
| − | + | while(nodeReduce(ROOT)); | |
| − | |||
| − | // | ||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
} | } | ||
Revision as of 12:16, 5 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>
int 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 "nodalHusk.c" // Actual nodal content and predeclared's #include "interface.c" // Layer model (currently bitmap/imagemap-based) #include "server.c" // Set up listening socket and declare serverIterate
// Main nodal reduction loop while(nodeReduce(ROOT));
}



