![]() |
Shadowrun: Awakened 29 September 2011 - Build 871
|
00001 /* 00002 * JoinChannelPacket - The packet that is sent to join a chat channel. 00003 * It contains a SystemAddress field because 00004 * the server will need to forward the client adress 00005 * to the chat server. 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 #pragma once 00025 #include "SraPacket.h" 00026 #include "NetworkHelper.h" 00027 #include "SraNetworkShared.h" 00028 00029 #include <memory> 00030 #include <string> 00031 00032 namespace SraNetwork 00033 { 00034 class JoinChannelPacket : 00035 public SraPacket 00036 { 00037 public: 00038 JoinChannelPacket(void); 00039 ~JoinChannelPacket(void); 00040 00041 virtual void Serialize(RakNet::BitStream* target); 00042 virtual void Deserialize(RakNet::BitStream* source); 00043 00044 int channelId; 00045 RakNet::SystemAddress clientAddress; 00046 }; 00047 }
Copyright © 2007-2010 by The Shadowrun: Awakened Team. This work is licensed under the GNU Lesser General Public License 3.