![]() |
Shadowrun: Awakened 29 September 2011 - Build 871
|
00001 /* 00002 * ChatServer entry - The chat server comprises two threads: 00003 * One for talking with the world server 00004 * (when a client wants to join a channel) 00005 * and the other one for talking with clients directly. 00006 * 00007 * @Author Michael <Tharbas> Matzen 00008 * 00009 * This program is free software; you can redistribute it and/or modify it 00010 * under the terms of the GNU General Public License as published by the Free 00011 * Software Foundation; either version 2 of the License, or (at your option) 00012 * any later version. 00013 * 00014 * This program is distributed in the hope that it will be useful, but WITHOUT 00015 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 00016 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for 00017 * more details. 00018 * 00019 * You should have received a copy of the GNU General Public License along with 00020 * this program; if not, write to the Free Software Foundation, Inc., 51 00021 * Franklin St, Fifth Floor, Boston, MA 02110, USA 00022 * 00023 */ 00024 00025 #include "ChatServer.h" 00026 #include "tbb.h" 00027 #include "tbb_thread.h" 00028 00029 int main() 00030 { 00031 tbb::tbb_thread clientThread( &SraNetwork::ChatServer::ClientConnectionThread ); 00032 tbb::tbb_thread serverThread( &SraNetwork::ChatServer::ServerConnectionThread ); 00033 clientThread.join(); 00034 serverThread.join(); 00035 00036 return 0; 00037 } 00038
Copyright © 2007-2010 by The Shadowrun: Awakened Team. This work is licensed under the GNU Lesser General Public License 3.