Main Page | Class Hierarchy | Class List | Directories | File List | Class Members | File Members

LoginReplyPacket Class Reference

#include <evalogin.h>

Inherits InPacket.

Inheritance diagram for LoginReplyPacket:

Inheritance graph
[legend]
Collaboration diagram for LoginReplyPacket:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 LoginReplyPacket ()
 LoginReplyPacket (unsigned char *sbuf, int len)
 LoginReplyPacket (const LoginReplyPacket &rhs)
virtual ~LoginReplyPacket ()
InPacketcopy ()
LoginReplyPacketoperator= (const LoginReplyPacket &rhs)
const unsigned char getReplyCode () const
const unsigned int getRedirectedIP () const
const short getRedirectedPort () const
const std::string & getReplyMessage () const
const int getQQ () const
const unsigned int getMyIP () const
const unsigned short getMyPort () const
const int getLoginTime () const
const unsigned int getServerIP () const
const short getServerPort () const
const unsigned int getLastLoginIP () const
const int getLastLoginTime () const

Protected Member Functions

virtual void parseBody ()

Private Attributes

int qqNum
unsigned int IP
unsigned short port
int loginTime
unsigned int serverIP
short serverPort
unsigned int lastLoginIP
int lastLoginTime
unsigned char clientKey [32]
unsigned int redirectedIP
short redirectedPort
unsigned char replyCode
std::string replyMessage

Detailed Description

Definition at line 42 of file evalogin.h.


Constructor & Destructor Documentation

LoginReplyPacket::LoginReplyPacket  )  [inline]
 

Definition at line 44 of file evalogin.h.

Referenced by copy().

LoginReplyPacket::LoginReplyPacket unsigned char *  sbuf,
int  len
 

Definition at line 98 of file evalogin.cpp.

LoginReplyPacket::LoginReplyPacket const LoginReplyPacket rhs  ) 
 

Definition at line 103 of file evalogin.cpp.

References getLastLoginIP(), getLastLoginTime(), getLoginTime(), getMyIP(), getMyPort(), getQQ(), getRedirectedIP(), getRedirectedPort(), getReplyCode(), getReplyMessage(), getServerIP(), getServerPort(), IP, lastLoginIP, lastLoginTime, loginTime, port, qqNum, redirectedIP, redirectedPort, replyCode, replyMessage, serverIP, and serverPort.

Here is the call graph for this function:

virtual LoginReplyPacket::~LoginReplyPacket  )  [inline, virtual]
 

Definition at line 47 of file evalogin.h.


Member Function Documentation

InPacket* LoginReplyPacket::copy  )  [inline]
 

Definition at line 49 of file evalogin.h.

References LoginReplyPacket().

Here is the call graph for this function:

const unsigned int LoginReplyPacket::getLastLoginIP  )  const [inline]
 

Definition at line 62 of file evalogin.h.

References lastLoginIP.

Referenced by LoginReplyPacket(), and operator=().

const int LoginReplyPacket::getLastLoginTime  )  const [inline]
 

Definition at line 63 of file evalogin.h.

References lastLoginTime.

Referenced by LoginReplyPacket(), and operator=().

const int LoginReplyPacket::getLoginTime  )  const [inline]
 

Definition at line 59 of file evalogin.h.

References loginTime.

Referenced by LoginReplyPacket(), and operator=().

const unsigned int LoginReplyPacket::getMyIP  )  const [inline]
 

Definition at line 57 of file evalogin.h.

References IP.

Referenced by LoginReplyPacket(), and operator=().

const unsigned short LoginReplyPacket::getMyPort  )  const [inline]
 

Definition at line 58 of file evalogin.h.

References port.

Referenced by LoginReplyPacket(), and operator=().

const int LoginReplyPacket::getQQ  )  const [inline]
 

Definition at line 56 of file evalogin.h.

References qqNum.

Referenced by LoginReplyPacket(), operator=(), and parseBody().

const unsigned int LoginReplyPacket::getRedirectedIP  )  const [inline]
 

Definition at line 52 of file evalogin.h.

References redirectedIP.

Referenced by LoginReplyPacket(), and operator=().

const short LoginReplyPacket::getRedirectedPort  )  const [inline]
 

Definition at line 53 of file evalogin.h.

References redirectedPort.

Referenced by LoginReplyPacket(), and operator=().

const unsigned char LoginReplyPacket::getReplyCode  )  const [inline]
 

Definition at line 51 of file evalogin.h.

References replyCode.

Referenced by LoginReplyPacket(), and operator=().

const std::string& LoginReplyPacket::getReplyMessage  )  const [inline]
 

Definition at line 54 of file evalogin.h.

References replyMessage.

Referenced by LoginReplyPacket(), and operator=().

const unsigned int LoginReplyPacket::getServerIP  )  const [inline]
 

Definition at line 60 of file evalogin.h.

References serverIP.

Referenced by LoginReplyPacket(), and operator=().

const short LoginReplyPacket::getServerPort  )  const [inline]
 

Definition at line 61 of file evalogin.h.

References serverPort.

Referenced by LoginReplyPacket(), and operator=().

LoginReplyPacket & LoginReplyPacket::operator= const LoginReplyPacket rhs  ) 
 

Definition at line 121 of file evalogin.cpp.

References getLastLoginIP(), getLastLoginTime(), getLoginTime(), getMyIP(), getMyPort(), getQQ(), getRedirectedIP(), getRedirectedPort(), getReplyCode(), getReplyMessage(), getServerIP(), getServerPort(), IP, lastLoginIP, lastLoginTime, loginTime, port, qqNum, redirectedIP, redirectedPort, replyCode, replyMessage, serverIP, and serverPort.

Here is the call graph for this function:

void LoginReplyPacket::parseBody  )  [protected, virtual]
 

Reimplemented from InPacket.

Definition at line 140 of file evalogin.cpp.

References InPacket::bodyLength, InPacket::decryptedBuf, EvaUtil::doMd5(), getQQ(), Packet::getSessionKey(), IP, lastLoginIP, lastLoginTime, loginTime, port, QQ_KEY_LENGTH, QQ_LOGIN_REPLY_MISC_ERROR, QQ_LOGIN_REPLY_OK, QQ_LOGIN_REPLY_PWD_ERROR, QQ_LOGIN_REPLY_REDIRECT, qqNum, redirectedIP, redirectedPort, replyCode, replyMessage, serverIP, serverPort, Packet::setClientKey(), Packet::setFileSessionKey(), Packet::setFileShareToken(), and Packet::setSessionKey().

Here is the call graph for this function:


Member Data Documentation

unsigned char LoginReplyPacket::clientKey[32] [private]
 

Reimplemented from Packet.

Definition at line 78 of file evalogin.h.

unsigned int LoginReplyPacket::IP [private]
 

Definition at line 69 of file evalogin.h.

Referenced by getMyIP(), LoginReplyPacket(), operator=(), and parseBody().

unsigned int LoginReplyPacket::lastLoginIP [private]
 

Definition at line 74 of file evalogin.h.

Referenced by getLastLoginIP(), LoginReplyPacket(), operator=(), and parseBody().

int LoginReplyPacket::lastLoginTime [private]
 

Definition at line 75 of file evalogin.h.

Referenced by getLastLoginTime(), LoginReplyPacket(), operator=(), and parseBody().

int LoginReplyPacket::loginTime [private]
 

Definition at line 71 of file evalogin.h.

Referenced by getLoginTime(), LoginReplyPacket(), operator=(), and parseBody().

unsigned short LoginReplyPacket::port [private]
 

Definition at line 70 of file evalogin.h.

Referenced by getMyPort(), LoginReplyPacket(), operator=(), and parseBody().

int LoginReplyPacket::qqNum [private]
 

Reimplemented from Packet.

Definition at line 68 of file evalogin.h.

Referenced by getQQ(), LoginReplyPacket(), operator=(), and parseBody().

unsigned int LoginReplyPacket::redirectedIP [private]
 

Definition at line 79 of file evalogin.h.

Referenced by getRedirectedIP(), LoginReplyPacket(), operator=(), and parseBody().

short LoginReplyPacket::redirectedPort [private]
 

Definition at line 80 of file evalogin.h.

Referenced by getRedirectedPort(), LoginReplyPacket(), operator=(), and parseBody().

unsigned char LoginReplyPacket::replyCode [private]
 

Definition at line 82 of file evalogin.h.

Referenced by getReplyCode(), LoginReplyPacket(), operator=(), and parseBody().

std::string LoginReplyPacket::replyMessage [private]
 

Definition at line 85 of file evalogin.h.

Referenced by getReplyMessage(), LoginReplyPacket(), operator=(), and parseBody().

unsigned int LoginReplyPacket::serverIP [private]
 

Definition at line 72 of file evalogin.h.

Referenced by getServerIP(), LoginReplyPacket(), operator=(), and parseBody().

short LoginReplyPacket::serverPort [private]
 

Definition at line 73 of file evalogin.h.

Referenced by getServerPort(), LoginReplyPacket(), operator=(), and parseBody().


The documentation for this class was generated from the following files:
Generated on Mon May 15 20:51:27 2006 for libeva by  doxygen 1.4.4