00001 /// @cond EXCLUDEDTESTSOURCES 00002 /*************************************************************************** 00003 * The contents of this file are subject to the Mozilla Public * 00004 * License Version 1.1 (the "License"); you may not use this file * 00005 * except in compliance with the License. You may obtain a copy of * 00006 * the License at http://www.mozilla.org/MPL/ * 00007 * * 00008 * Software distributed under the License is distributed on an "AS * 00009 * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or * 00010 * implied. See the License for the specific language governing * 00011 * rights and limitations under the License. * 00012 * * 00013 * The Original Code is Game Network Framework (GaNeF). * 00014 * * 00015 * The Initial Developers of the Original Code are * 00016 * Lars Langer and Emanuel Greisen * 00017 * Copyright (C) 2005. Lars Langer & Emanuel Greisen * 00018 * All Rights Reserved. * 00019 * * 00020 * Contributor(s): * 00021 * none yet.... * 00022 * * 00023 ***************************************************************************/ 00024 00025 #include <iostream> 00026 #include <cstdlib> 00027 00028 #include "testserverframework.h" 00029 00030 00031 int main(int argc, char *argv[]) 00032 { 00033 try 00034 { 00035 std::cout << "Hello, world!" << std::endl; 00036 00037 // Create a framework 00038 TestServerFramework framework; 00039 00040 // Start the framework 00041 framework.start(); 00042 00043 // GameLoop 00044 framework.mainLoop(); 00045 } 00046 catch(FrameworkError *err) 00047 { 00048 std::cout << "FrameworkError:" << err->msg << std::endl; 00049 } 00050 catch(PacketError *err) 00051 { 00052 std::cout << "PacketError:" << err->msg << std::endl; 00053 } 00054 00055 return EXIT_SUCCESS; 00056 } 00057 00058 /// @endcond