Talk:INIT
- Current state of INIT (15 Feb)
The current work is on a basic nodal execution environment in both PERL and SWF. The current version of peerd is NodalWikid.pl which is a peerd-core running as a child thread of a wikid Husk. The current SWF is still peer-init.as and peer-main.as (frames 1 and 2), but is now compiled in PERL by swf.pl using SWF::Builder instead of PHP/Ming.
Because peerd (NodalWikid) is already daemonised/servicated, and has logging etc, the nodal INIT can be stripped down to essentials.
- Old INIT notes
The only things required in INIT are event-hooks (which would never reach a queue if the hooks aren't first established), and nodes like daemonise which are part of the peers own startup phase. All functionality required by items in MAIN can be declared on first use (DOFU).
- conf processes the command-line parameters used to execute the peer (usually on server startup)
- daemonise converts the running peer into a daemon if running unix-like environment environment. Also handles insertion and removal of daemon from server startup.
- servicate converts the running peer into an NT service if running in a Win32 environment. Also integrates the service with the NT service control manager for installation and removal.
- server binds the running peer to a port ready to receive incoming connection events.