|
|
Initializes the library.
-
Parameters:
-
| cf |
The full path to the macs config file. |
| connect |
Logical OR'ing of MACS_AUS, MACS_UPS, MACS_ATS and/or MACS_ALL. The selected servers will become connected on initialization. Others will only connect on demand. |
-
Returns:
-
NULL on failure, or an opaque instance of the _macs_ctx macs context (passed as the first argument in other API calls) on success.
-
Todo:
-
there should be a way to evenly spread which server entry the children connect to. Right now, the first entry gets hit til it won't accept any more, then the second, etc.
Processes the configuration file. Conditionally establishes server connections. Loads configuration directives for exposure via macs_get_config() and macs_get_configs() -
Examples:
-
sample.c.
|