Shadowrun: Awakened 29 September 2011 - Build 871
GetServerListPacket.h
Go to the documentation of this file.
00001 /*
00002  * GetServerListPacket - The packet that is sent to request 
00003  *      the list of active servers.
00004  *      (Do we stil need this ?)
00005  *
00006  * @Author Michael <Tharbas> Matzen
00007  *
00008  * This program is free software; you can redistribute it and/or modify it
00009  * under the terms of the GNU General Public License as published by the Free
00010  * Software Foundation; either version 2 of the License, or (at your option)
00011  * any later version.
00012  *
00013  * This program is distributed in the hope that it will be useful, but WITHOUT
00014  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
00015  * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
00016  * more details.
00017  *
00018  * You should have received a copy of the GNU General Public License along with
00019  * this program; if not, write to the Free Software Foundation, Inc., 51
00020  * Franklin St, Fifth Floor, Boston, MA 02110, USA
00021  * 
00022  */
00023 #pragma once
00024 #include "SraPacket.h"
00025 #include "NetworkHelper.h"
00026 #include "SraNetworkShared.h"
00027 #include "SraServerInfo.h"
00028 
00029 #include <memory>
00030 #include <string>
00031 #include <vector>
00032 
00033 namespace SraNetwork
00034 {
00035     class GetServerListPacket :
00036         public SraPacket
00037     {
00038     public:
00039         GetServerListPacket(void);
00040         ~GetServerListPacket(void);
00041 
00042         virtual void Serialize(RakNet::BitStream* target);
00043         virtual void Deserialize(RakNet::BitStream* source);
00044         
00046         static const int MAX_NUMBER_OF_SERVERS_PER_MESSAGE = 10;
00047 
00048     private:
00049         // The list of servers.
00050         std::vector<SraServerInfo> listOfServers; 
00051     };
00052 }
00053 

Copyright © 2007-2010 by The Shadowrun: Awakened Team. This work is licensed under the GNU Lesser General Public License 3.

GNU Lesser General Public License 3 Sourceforge.net