int Ice::Service::main | ( | int | argc, |
const wchar_t *const | argv[], | ||
InitializationData | initData = {} ) |
The primary entry point for services.
This function examines argv
for reserved options and takes the appropriate action. The reserved options are shown below.
Win32:
–service NAME
Unix:
–daemon [–nochdir] [–noclose]
If –service or –daemon are specified, the program runs as a service, otherwise the program runs as a regular foreground process. Any service-specific (and Ice-specific) options are stripped from argv
(just as for Ice::initialize).
argc | The number of arguments in argv . |
argv | The command-line arguments. |
initData | Configuration data for the new communicator. |