Infrasctucture Inf Function Reference

Inf
#include "inf.h"

Main Infrastructure wrapper.   This module contains infInit() which initiates all parts of the infrastructure and does the initial communication to it's parent, if it was spawned by sysgo.   In addition are other functions for requesting service from the sys layer like infBcst() for broadcasting a message to all of sysgo's subprocs, and infClone() which requests the "cloning" of a existing process.   

infBcst infClone infGetCfg infGetProcs infInit
infKill infRun

int infBcst( char* msg )
Broadcast a message to all other processes running under sysgo.   Receiving processes will have registered an event handler for the numbered event.   The message format is "xx:your message goes here" where xx is the event number.   It is then the job of the registered event handler to process the remainder of the message.

int infClone( char* procName )
Request that sysgo clone the named process.   


int infGetCfg( int argc, char* argv )
Read the named config file, but don't become the process.   


char* infGetProcs( int argc, char* argv )
Returns a newline separated list of processes where each one is like ProcNbr,ProcName,ProcessIdNEWLINE.    Don't overlook the NEWLINE at the end of even the last process entry.

int infInit( int argc, char* argv[] )
Initialize the Infrastructure. Call all other module initializations, read   Returns a possible modified argc.

int infKill( char* procName )
Request that sysgo kill the named, running, process.   


int infRun( char* procName )
Request that sysgo start a configured, non-running process.