Shadowrun: Awakened 29 September 2011 - Build 871
Public Member Functions | Public Attributes | Static Public Attributes
SraNetwork::ReplyPacket Class Reference

#include <ReplyPacket.h>

Inheritance diagram for SraNetwork::ReplyPacket:

List of all members.

Public Member Functions

virtual void Deserialize (RakNet::BitStream *source)
 De-serializes the package.
 ReplyPacket (void)
virtual void Serialize (RakNet::BitStream *target)
 Serializes the package.
 ~ReplyPacket (void)

Public Attributes

unsigned char messageOpCode
char replyCode
RakNet::RakString replyMessage

Static Public Attributes

static const char FAIL = 1
static const char OK = 0
static const int PACKAGE_SIZE = sizeof(char) + sizeof(int) + sizeof(std::string)

Detailed Description

Definition at line 30 of file ReplyPacket.h.


Constructor & Destructor Documentation

SraNetwork::ReplyPacket::ReplyPacket ( void  )

Definition at line 5 of file ReplyPacket.cpp.

References SraNetwork::ID_SRA_REPLY, and SraNetwork::SraPacket::opCode.

SraNetwork::ReplyPacket::~ReplyPacket ( void  )

Definition at line 11 of file ReplyPacket.cpp.

    {
    }

Member Function Documentation

void SraNetwork::ReplyPacket::Deserialize ( RakNet::BitStream source) [virtual]

Reimplemented from SraNetwork::SraPacket.

Definition at line 30 of file ReplyPacket.cpp.

References messageOpCode, RakNet::BitStream::Read(), replyCode, and replyMessage.

    {
        source->Read<char>(replyCode);
        source->Read<unsigned char>(messageOpCode);
        source->Read<RakNet::RakString>(replyMessage);
    }
void SraNetwork::ReplyPacket::Serialize ( RakNet::BitStream target) [virtual]

Member Data Documentation

const char SraNetwork::ReplyPacket::FAIL = 1 [static]
const char SraNetwork::ReplyPacket::OK = 0 [static]
const int SraNetwork::ReplyPacket::PACKAGE_SIZE = sizeof(char) + sizeof(int) + sizeof(std::string) [static]

Definition at line 48 of file ReplyPacket.h.


The documentation for this class was generated from the following files:

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