summaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2010-11-21 16:20:55 +0000
committerPaul Buetow <paul@buetow.org>2010-11-21 16:20:55 +0000
commit6fde6b0fe90abde84011202edd40fe46eb06af44 (patch)
treeef760338c50b4df3ae9cca96347bca962fdbec7e /src/main.cpp
parent55b08bd93257d32df76efc4e8e3f49311c39ee82 (diff)
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp29
1 files changed, 8 insertions, 21 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 2033249..df882a5 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -1,12 +1,11 @@
/*:*
*: File: ./src/main.cpp
*:
- *: yChat; Homepage: ychat.buetow.org; Version 0.9.0-CURRENT
+ *: yChat; Homepage: www.yChat.org; Version 0.8.3-CURRENT
*:
*: Copyright (C) 2003 Paul C. Buetow, Volker Richter
- *: Copyright (C) 2004 Paul C. Buetow
*: Copyright (C) 2005 EXA Digital Solutions GbR
- *: Copyright (C) 2006, 2007 Paul C. Buetow
+ *: Copyright (C) 2004, 2006 Paul C. Buetow
*:
*: This program is free software; you can redistribute it and/or
*: modify it under the terms of the GNU General Public License
@@ -23,9 +22,6 @@
*: Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*:*/
-#include <sys/time.h>
-#include <event.h>
-
#include "incl.h"
#include "sign.h"
@@ -106,26 +102,17 @@ main(int argc, char* argv[])
#endif
//*>>
- event_init();
- sign::init_event_handlers();
- sock::init_event_handlers();
- //wrap::SOCK->start();
- event_dispatch();
-
- return 0;
+ sign::init_signal_handlers();
- /*
- #ifdef CLI
- // cli _cli; // TODO
- // _cli.start();
- #endif
+#ifdef CLI
+ cli _cli;
+ _cli.run();
+#endif
// start the socket manager. this one will listen for incoming http requests and will
// forward them to the specified routines which will generate a http response.
- //wrap::SOCK->start();
-
+ wrap::SOCK->start();
cout << DOWNMSG << endl;
return 0;
- */
}