![]() |
Shadowrun: Awakened 29 September 2011 - Build 871
|
#include <IncommingConnectionMessage.h>
Inheritance diagram for SraNetwork::IncommingConnectionMessage:Public Member Functions | |
| virtual SraPacket * | createPacketFromData (const unsigned char *data) |
| IncommingConnectionMessage (void) | |
| virtual void | process (MessageData *message) |
| ~IncommingConnectionMessage (void) | |
Definition at line 6 of file IncommingConnectionMessage.h.
| SraNetwork::IncommingConnectionMessage::IncommingConnectionMessage | ( | void | ) |
Definition at line 6 of file IncommingConnectionMessage.cpp.
{
}
| SraNetwork::IncommingConnectionMessage::~IncommingConnectionMessage | ( | void | ) |
Definition at line 11 of file IncommingConnectionMessage.cpp.
{
}
| SraPacket * SraNetwork::IncommingConnectionMessage::createPacketFromData | ( | const unsigned char * | data | ) | [virtual] |
Implements SraNetwork::SraBaseMessage.
Definition at line 15 of file IncommingConnectionMessage.cpp.
{
return NULL;
}
| void SraNetwork::IncommingConnectionMessage::process | ( | MessageData * | message | ) | [virtual] |
Implements SraNetwork::SraBaseMessage.
Definition at line 20 of file IncommingConnectionMessage.cpp.
References SraNetwork::MessageData::address, SraNetwork::ClientRegister::getClientFromAddress(), and SraNetwork::ClientRegister::getInstance().
{
//Check if the client has alread logged in:
ClientRegister* reg = ClientRegister::getInstance();
const SraClientData* client = reg->getClientFromAddress( message->address );
if ( client != NULL ) {
// We could send the client some data, but right now we wont do anything :P
}
}
Copyright © 2007-2010 by The Shadowrun: Awakened Team. This work is licensed under the GNU Lesser General Public License 3.