2 * COPYRIGHT: See COPYING in the top level directory
3 * PROJECT: ReactOS HTTP Daemon
5 * PURPOSE: Main program
6 * PROGRAMMERS: Casper S. Hornstrup (chorns@users.sourceforge.net)
8 * CSH 01/09/2000 Created
26 pConfiguration
= NULL
;
29 // Create configuration object
30 pConfiguration
= new CConfig
;
31 pConfiguration
->Default();
33 // Create daemon object
34 pDaemonThread
= new CHttpDaemonThread
;
38 while ((!bQuit
) && (!pDaemonThread
->Terminated())) {
39 bQuit
= PeekMessage(&Msg
, NULL
, 0, 0, PM_REMOVE
);
41 DispatchMessage(&Msg
);
46 if (pConfiguration
!= NULL
)
47 delete pConfiguration
;
48 } catch (bad_alloc e
) {
49 if (pConfiguration
!= NULL
)
50 delete pConfiguration
;
51 ReportErrorStr(TS("Insufficient resources."));
57 /* Program entry point */
58 int main(int argc
, char* argv
[])
60 printf("ReactOS HTTP Daemon\n");
61 printf("Type Control-C to stop.\n");
65 printf("Daemon stopped.\n");