Shadowrun: Awakened 29 September 2011 - Build 871
IncommingConnectionMessage.cpp
Go to the documentation of this file.
00001 #include "IncommingConnectionMessage.h"
00002 #include "ClientRegister.h"
00003 
00004 namespace SraNetwork
00005 {
00006     IncommingConnectionMessage::IncommingConnectionMessage(void)
00007     {
00008     }
00009 
00010 
00011     IncommingConnectionMessage::~IncommingConnectionMessage(void)
00012     {
00013     }
00014     
00015     SraPacket* IncommingConnectionMessage::createPacketFromData(const unsigned char* data)
00016     {
00017         return NULL;
00018     }
00019 
00020     void IncommingConnectionMessage::process(MessageData* message)
00021     {
00022         //Check if the client has alread logged in:
00023         ClientRegister* reg = ClientRegister::getInstance();
00024         const SraClientData* client = reg->getClientFromAddress( message->address );
00025         if ( client != NULL ) {
00026             // We could send the client some data, but right now we wont do anything :P
00027         }
00028     }
00029 }

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