NAME

Program - general program functions


SYNOPSIS

Program::init($read_stdin)

This function initializes the configuration.

$value = Program::arg($label)

This method returns the configuration value for the stated label. When no configuration is seen, die is invoked.

Program::debug($text), Program::info($text), Program::perf($text), Program::error($text), Program::fatal($text)

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.

$stamp = Program::timestamp()

Returns a timestamp in millisecond resultion.


PURPOSE

This module is for internal use in the HammerServer.


AUTHOR

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.