![]() |
Shadowrun: Awakened 29 September 2011 - Build 871
|
00001 /* 00002 * PackageProcessingTask - Executed by the WorldServer and used 00003 * to process/route packets received from clients. 00004 * 00005 * @Author Michael <Tharbas> Matzen 00006 * 00007 * This program is free software; you can redistribute it and/or modify it 00008 * under the terms of the GNU General Public License as published by the Free 00009 * Software Foundation; either version 2 of the License, or (at your option) 00010 * any later version. 00011 * 00012 * This program is distributed in the hope that it will be useful, but WITHOUT 00013 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 00014 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for 00015 * more details. 00016 * 00017 * You should have received a copy of the GNU General Public License along with 00018 * this program; if not, write to the Free Software Foundation, Inc., 51 00019 * Franklin St, Fifth Floor, Boston, MA 02110, USA 00020 * 00021 */ 00022 #pragma once 00023 00024 #include "WindowsIncludes.h" 00025 #include <tbb_thread.h> 00026 #include <task.h> 00027 #include <tbb_exception.h> 00028 #include <stdio.h> 00029 #include <deque> 00030 #include <map> 00031 00032 #include "SraNetworkShared.h" 00033 #include "ClientRegister.h" 00034 #include "MessagePump.h" 00035 #include "SraPacket.h" 00036 00037 namespace SraNetwork { 00038 00039 //Forward decl.of world server 00040 class WorldServer; 00041 00042 class PacketProcessingTask 00043 : public tbb::task 00044 { 00045 00046 private: 00047 BitStream stream; 00048 RakNet::SystemAddress address; 00049 00050 public: 00051 PacketProcessingTask(RakNet::Packet* packet) 00052 { 00053 } 00054 ~PacketProcessingTask(void) 00055 { 00056 } 00057 00058 // Executed once per received packet. 00059 // This execution will do nothing more than adding the 00060 // message to the message pump. 00061 task* execute() 00062 { 00063 return NULL; 00064 } 00065 }; 00066 }
Copyright © 2007-2010 by The Shadowrun: Awakened Team. This work is licensed under the GNU Lesser General Public License 3.