Google
Web alhem.net
Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members

client.cpp

Go to the documentation of this file.
00001 00006 /* 00007 Copyright (C) 2004 Anders Hedstrom 00008 00009 This program is free software; you can redistribute it and/or 00010 modify it under the terms of the GNU General Public License 00011 as published by the Free Software Foundation; either version 2 00012 of the License, or (at your option) any later version. 00013 00014 This program is distributed in the hope that it will be useful, 00015 but WITHOUT ANY WARRANTY; without even the implied warranty of 00016 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00017 GNU General Public License for more details. 00018 00019 You should have received a copy of the GNU General Public License 00020 along with this program; if not, write to the Free Software 00021 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 00022 */ 00023 #include <stdincl.h> 00024 //#include <libcgi++.h> 00025 00026 #include "client.h" 00027 #include "AnimateThread.h" 00028 #include "InitSDL.h" 00029 #include "WinSockInit.h" 00030 #include "Main.h" 00031 #include "Globals.h" 00032 00033 00034 static Globals gggg; 00035 iotm::Ticker ticks; 00036 Main *appl = NULL; 00037 00038 00039 int main(int argc,char *argv[]) 00040 { 00041 Main a(argc,argv); 00042 00043 appl = &a; 00044 if (a.IsOK()) 00045 { 00046 // AnimateThread at; 00047 // at.SetRelease( true ); 00048 a.MainLoop(); 00049 } 00050 else 00051 { 00052 fprintf(stderr,"Error in init, exiting...\n"); 00053 } 00054 return 0; 00055 } 00056 00057 00058 // input_thread: console input ==> sys_command() 00059 // sys_command() waits indefinitely for input from user 00060 // sys_command() writes to output buffer 00061 // <always running> 00062 00063 // connect_thread: input/output socket connection to server 00064 // connect_thread reads from output buffer 00065 // connect_thread writes to input buffer 00066 // <created by input_thread on command> 00067 00068 // event_thread: process events from server 00069 // event_thread reads from input buffer 00070 // initiates all graphic movement (animations, text etc) 00071 // <created by connect_thread on successful connect> 00072 00073 // animate_thread: cycles animations, redraws graphic window 00074 // initializes graphic window 00075 // <always running> 00076 00077

Generated for SDL C++ GUI by doxygen 1.3.6