diff options
| author | admin (centauri.fritz.box) <puppet@mx.buetow.org> | 2014-07-01 20:17:01 +0200 |
|---|---|---|
| committer | admin (centauri.fritz.box) <puppet@mx.buetow.org> | 2014-07-01 20:17:01 +0200 |
| commit | 174529af9197d99d2c5e8f75798fb6d6d9247254 (patch) | |
| tree | 7bdb29f9391b5a3d3629bba3ebec1ca7832b3c9c /src/wrap.cpp | |
| parent | 751eada68e49f9ffae9a0be743d88a3ce956883f (diff) | |
| parent | 6fde6b0fe90abde84011202edd40fe46eb06af44 (diff) | |
Diffstat (limited to 'src/wrap.cpp')
| -rw-r--r-- | src/wrap.cpp | 40 |
1 files changed, 4 insertions, 36 deletions
diff --git a/src/wrap.cpp b/src/wrap.cpp index 3120b70..ae1c9a2 100644 --- a/src/wrap.cpp +++ b/src/wrap.cpp @@ -1,7 +1,7 @@ /*:* *: File: ./src/wrap.cpp *: - *: yChat; Homepage: www.yChat.org; Version 0.7.9.5-RELEASE + *: yChat; Homepage: www.yChat.org; Version 0.8.3-CURRENT *: *: Copyright (C) 2003 Paul C. Buetow, Volker Richter *: Copyright (C) 2004 Paul C. Buetow @@ -56,18 +56,6 @@ dynamic_wrap* wrap::WRAP = NULL; void wrap::system_message( string s_message ) { -#ifdef NCURSES - if(NCUR) - { - NCUR->print( s_message ); - } - - else - { - cout << s_message << endl; - } -#endif - #ifdef SERVMSG cout << s_message << endl; #endif @@ -107,6 +95,8 @@ wrap::init_wrapper(map<string,string>* p_main_loop_params) // Init the socket manager. int i_port = tool::string2int( wrap::CONF->get_elem( "httpd.serverport" ) ); +#ifndef OPENSSL + WRAP->SOCK = SOCK = new sock; // create the server socket and set it up to accept connections. @@ -116,29 +106,7 @@ wrap::init_wrapper(map<string,string>* p_main_loop_params) exit(-1); } -#ifdef NCURSES - - WRAP->NCUR = NCUR = new ncur; // init the ncurses admin interface. - NCUR->run(); // run the thread - - // Wait until ncurses interface has been initialized. - do - { - usleep(1000); - } - while ( ! NCUR->is_ready() ); - - HTML->print_cached(0); -#else -#ifdef CLI - - cli* p_cli = new cli; - p_cli->run(); -#endif -#endif - - // Init the thread pool - WRAP->POOL = POOL = new pool; + pool::init(); //<<* // Init the chat manager. |
