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

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