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

InPacket Class Reference

#include <evapacket.h>

Inherits Packet.

Inherited by AddFriendAuthReplyPacket, AddFriendReplyPacket, ChangeStatusReplyPacket, DeleteFriendReplyPacket, DeleteMeReplyPacket, DownloadGroupFriendReplyPacket, EvaGetLevelReplyPacket, EvaMemoReplyPacket, EvaRequestKeyReplyPacket, FriendChangeStatusPacket, GetFriendListReplyPacket, GetOnlineFriendReplyPacket, GetUserInfoReplyPacket, GroupNameOpReplyPacket, KeepAliveReplyPacket, LoginReplyPacket, ModifyInfoReplyPacket, QunReplyPacket, ReceiveIMPacket, RequestExtraInfoReplyPacket, RequestLoginTokenReplyPacket, SearchUserReplyPacket, SendIMReplyPacket, SignatureReplyPacket, SystemNotificationPacket, and UploadGroupFriendReplyPacket.

Inheritance diagram for InPacket:

Inheritance graph
[legend]
Collaboration diagram for InPacket:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 InPacket ()
 InPacket (unsigned char *buf, int len)
 InPacket (const InPacket &rhs)
virtual ~InPacket ()
const bool parse ()
const int getLength () const
unsigned char * getBody () const
void setInPacket (const InPacket *packet)
InPacketoperator= (const InPacket &rhs)

Protected Member Functions

virtual void parseBody ()

Protected Attributes

int bodyLength
unsigned char * decryptedBuf

Private Member Functions

void decryptBody (unsigned char *buf, int len)

Detailed Description

Definition at line 137 of file evapacket.h.


Constructor & Destructor Documentation

InPacket::InPacket  ) 
 

Definition at line 334 of file evapacket.cpp.

InPacket::InPacket unsigned char *  buf,
int  len
 

Definition at line 339 of file evapacket.cpp.

References decryptBody(), decryptedBuf, MAX_PACKET_SIZE, and QQ_TAIL_LENGTH.

Here is the call graph for this function:

InPacket::InPacket const InPacket rhs  ) 
 

Definition at line 347 of file evapacket.cpp.

References bodyLength, decryptedBuf, getBody(), and getLength().

Here is the call graph for this function:

InPacket::~InPacket  )  [virtual]
 

Definition at line 355 of file evapacket.cpp.

References decryptedBuf.


Member Function Documentation

void InPacket::decryptBody unsigned char *  buf,
int  len
[private]
 

Definition at line 372 of file evapacket.cpp.

References bodyLength, Packet::command, EvaCrypt::decrypt(), decryptedBuf, Packet::getPasswordKey(), Packet::getSessionKey(), Packet::iniKey, MAX_PACKET_SIZE, Packet::passwordKey, QQ_CMD_LOGIN, QQ_CMD_REQUEST_LOGIN_TOKEN, and Packet::sessionKey.

Referenced by InPacket().

Here is the call graph for this function:

unsigned char* InPacket::getBody  )  const [inline]
 

Definition at line 146 of file evapacket.h.

References decryptedBuf.

Referenced by InPacket(), operator=(), and setInPacket().

const int InPacket::getLength  )  const [inline]
 

Definition at line 145 of file evapacket.h.

References bodyLength.

Referenced by InPacket(), operator=(), ReceiveIMPacket::operator=(), ReceiveIMPacket::ReceiveIMPacket(), and setInPacket().

InPacket & InPacket::operator= const InPacket rhs  ) 
 

Definition at line 360 of file evapacket.cpp.

References bodyLength, decryptedBuf, getBody(), and getLength().

Here is the call graph for this function:

const bool InPacket::parse  ) 
 

Definition at line 436 of file evapacket.cpp.

References bodyLength, and parseBody().

Here is the call graph for this function:

virtual void InPacket::parseBody  )  [inline, protected, virtual]
 

Reimplemented in AddFriendReplyPacket, AddFriendAuthReplyPacket, DeleteFriendReplyPacket, DeleteMeReplyPacket, SystemNotificationPacket, RequestExtraInfoReplyPacket, SignatureReplyPacket, GetFriendListReplyPacket, GroupNameOpReplyPacket, DownloadGroupFriendReplyPacket, UploadGroupFriendReplyPacket, ReceiveIMPacket, SendIMReplyPacket, EvaRequestKeyReplyPacket, EvaGetLevelReplyPacket, LoginReplyPacket, KeepAliveReplyPacket, RequestLoginTokenReplyPacket, EvaMemoReplyPacket, GetOnlineFriendReplyPacket, FriendChangeStatusPacket, ChangeStatusReplyPacket, QunReplyPacket, SearchUserReplyPacket, GetUserInfoReplyPacket, and ModifyInfoReplyPacket.

Definition at line 153 of file evapacket.h.

Referenced by parse().

void InPacket::setInPacket const InPacket packet  ) 
 

Definition at line 423 of file evapacket.cpp.

References bodyLength, Packet::command, decryptedBuf, getBody(), Packet::getCommand(), getLength(), Packet::getSequence(), Packet::getVersion(), Packet::sequence, and Packet::version.

Here is the call graph for this function:


Member Data Documentation

int InPacket::bodyLength [protected]
 

Definition at line 150 of file evapacket.h.

Referenced by decryptBody(), ReceiveIMPacket::getBodyLength(), getLength(), InPacket(), operator=(), parse(), ModifyInfoReplyPacket::parseBody(), GetUserInfoReplyPacket::parseBody(), SearchUserReplyPacket::parseBody(), QunReplyPacket::parseBody(), GetOnlineFriendReplyPacket::parseBody(), EvaMemoReplyPacket::parseBody(), KeepAliveReplyPacket::parseBody(), LoginReplyPacket::parseBody(), EvaGetLevelReplyPacket::parseBody(), ReceiveIMPacket::parseBody(), DownloadGroupFriendReplyPacket::parseBody(), GroupNameOpReplyPacket::parseBody(), GetFriendListReplyPacket::parseBody(), SignatureReplyPacket::parseBody(), RequestExtraInfoReplyPacket::parseBody(), SystemNotificationPacket::parseBody(), and setInPacket().

unsigned char* InPacket::decryptedBuf [protected]
 

Definition at line 151 of file evapacket.h.

Referenced by decryptBody(), getBody(), ReceiveIMPacket::getBodyData(), InPacket(), operator=(), ModifyInfoReplyPacket::parseBody(), GetUserInfoReplyPacket::parseBody(), SearchUserReplyPacket::parseBody(), QunReplyPacket::parseBody(), ChangeStatusReplyPacket::parseBody(), FriendChangeStatusPacket::parseBody(), GetOnlineFriendReplyPacket::parseBody(), EvaMemoReplyPacket::parseBody(), RequestLoginTokenReplyPacket::parseBody(), KeepAliveReplyPacket::parseBody(), LoginReplyPacket::parseBody(), EvaGetLevelReplyPacket::parseBody(), EvaRequestKeyReplyPacket::parseBody(), SendIMReplyPacket::parseBody(), ReceiveIMPacket::parseBody(), UploadGroupFriendReplyPacket::parseBody(), DownloadGroupFriendReplyPacket::parseBody(), GroupNameOpReplyPacket::parseBody(), GetFriendListReplyPacket::parseBody(), SignatureReplyPacket::parseBody(), RequestExtraInfoReplyPacket::parseBody(), SystemNotificationPacket::parseBody(), DeleteMeReplyPacket::parseBody(), DeleteFriendReplyPacket::parseBody(), AddFriendAuthReplyPacket::parseBody(), AddFriendReplyPacket::parseBody(), setInPacket(), and ~InPacket().


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