diff options
| author | Paul Buetow <paul@buetow.org> | 2013-04-06 13:14:45 +0200 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2013-04-06 13:14:45 +0200 |
| commit | 23c5e7d57e1e9216f4da3446656df2dc7202975d (patch) | |
| tree | b387afc4ad6acad4681252df8ce8def5dc8aa54d /main.cpp | |
| parent | 9dcec1feba68dc5ba38cdc634f5bf113c0f77348 (diff) | |
tagging ychat-0.1ychat-0.1
Diffstat (limited to 'main.cpp')
| -rw-r--r--[-rwxr-xr-x] | main.cpp | 40 |
1 files changed, 21 insertions, 19 deletions
@@ -1,6 +1,6 @@ /* - * yChat++; Contact: www.yChat.org; Mail@yChat.org - * Copyright (C) 2003 Paul C. Buetow, Volker Richter + * yChat++; Homepage: www.yChat.org + * Copyright (C) 2003 Paul C. Buetow ( Snooper@yChat.org, ICQ: 11655527 ) * ----------------------------------------------------------------- * * This program is free software; you can redistribute it and/or @@ -19,6 +19,7 @@ * */ + // needed for ignoring SIGPIPE. #include <signal.h> @@ -26,25 +27,25 @@ #include "incl.h" // include the chat manager. -#include "s_chat.h" +#include "CHAT.h" // include the config manager. -#include "s_conf.h" +#include "CONF.h" // include the html-template manager. -#include "s_html.h" +#include "HTML.h" // include the mutex manager for global synchronization. -#include "s_mutx.h" +#include "MUTX.h" // include the socket manager. -#include "s_sock.h" +#include "SOCK.h" using namespace std; int main() { -#ifdef VERBOSE +#ifdef _VERBOSE cout << " ___ _ _ " << endl << " _ _ / __\\ |__ __ _| |_ " << endl @@ -53,8 +54,9 @@ cout << " ___ _ _ " << endl << " \\__, \\____/|_| |_|\\__,_|\\__|" << endl << " |___/ " << endl << endl - << DESCRIP << endl - << VERSION << ", " + << DESCRIP + << VERSION << endl + << VERSION << endl << CONTACT << endl << SEPERAT << endl << STARTMS << endl ; @@ -66,19 +68,19 @@ cout << " ___ _ _ " << endl // all the static data classes have to be initialized once. otherwise they will // contain only empty pointers and the chat server won't work correctly. - // the order of the initializations is very importand. for example the s_html::init() - // invokations assumes an initialized s_conf class. - s_mutx::init(); // init the mutex manager. - s_conf::init(); // init the config manager. - s_html::init(); // init the html-template manager. - s_sock::init(); // init the socket manager. - s_chat::init(); // init the chat manager. + // the order of the initializations is very importand. for example the HTML::init() + // invokations assumes an initialized CONF class. + MUTX::init(); // init the mutex manager. + CONF::init(); // init the config manager. + HTML::init(); // init the html-template manager. + SOCK::init(); // init the socket manager. + CHAT::init(); // init the chat manager. // 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. - s_sock::get().start(); + SOCK::get().start(); -#ifdef VERBOSE +#ifdef _VERBOSE cout << DOWNMSG << endl; #endif |
