Program - general program functions
This function initializes the configuration.
First, the configuration file etc/hammerserver.conf is scanned. This picks up all configuration, except 'start'. A read from stdin is invoked if a configuration value is PROMPT. Therefore, Program::init() must be invoked before forking.
Next, ARGV is scanned and arguments in the format label=value are converted to configuration values.
Next, if $read_stdin is non-zero, stdin is read. Each line is also taken as a label=value setting. Reading stdin stops upon EOF or when a single line with the word END is seen.
This method returns the configuration value for the stated label. When no configuration is seen, die is invoked.
These logging functions add text to the log log/hammerserverd.log if the logging for the implied level is enabled. Errors and fatals are always logged.
Returns a timestamp in millisecond resultion.
This module is for internal use in the HammerServer.
The tamper-resistant server, all used modules, and the documentation were written by Karel Kubat / karel@e-tunity.com. Copyright (c) 2009 ff. Distributed under GPLV3.