#include <evapacket.h>
Inherited by InPacket, and OutPacket.
Inheritance diagram for Packet:

Public Member Functions | |
| Packet () | |
| Packet (const short version, const short command, const short sequence) | |
| Packet (unsigned char *buf, int *len) | |
| Packet (const Packet &rhs) | |
| ~Packet () | |
| bool | operator== (const Packet &rhs) const |
| Packet & | operator= (const Packet &rhs) |
| const int | hashCode () |
| const short | getVersion () const |
| const short | getCommand () const |
| const short | getSequence () const |
| void | setVersion (const short version) |
| void | setCommand (const short command) |
| void | setSequence (const short sequence) |
Static Public Member Functions | |
| static const int | getQQ () |
| static void | setQQ (const int id) |
| static void | setUDP (bool isUDP) |
| static bool | isUDP () |
| static void | setPasswordKey (const unsigned char *pkey) |
| static bool | isLoginTokenSet () |
| static bool | isClientKeySet () |
| static bool | isFileAgentKeySet () |
| static bool | isFileAgentTokenSet () |
| static unsigned char * | getFileAgentKey () |
| static unsigned char * | getFileAgentToken () |
| static unsigned int | getFileAgentTokenLength () |
| static unsigned char * | getFileShareToken () |
| static unsigned char * | getClientKey () |
| static const int | getClientKeyLength () |
| static void | clearAllKeys () |
Static Protected Member Functions | |
| static unsigned char * | getSessionKey () |
| static unsigned char * | getPasswordKey () |
| static unsigned char * | getFileSessionKey () |
| static unsigned char * | getLoginToken () |
| static const int | getLoginTokenLength () |
| static void | setSessionKey (const unsigned char *skey) |
| static void | setFileSessionKey (const unsigned char *fskey) |
| static void | setLoginToken (const unsigned char *token, const int length) |
| static void | setClientKey (const unsigned char *ckey, const int length) |
| static void | setFileAgentKey (const unsigned char *key) |
| static void | setFileAgentToken (const unsigned char *token, const int length) |
| static void | setFileShareToken (const unsigned char *token) |
Protected Attributes | |
| short | version |
| short | command |
| short | sequence |
Static Protected Attributes | |
| static unsigned char | iniKey [16] |
Static Private Attributes | |
| static int | qqNum = -1 |
| static bool | mIsUDP = true |
| static unsigned char * | sessionKey = NULL |
| static unsigned char * | passwordKey = NULL |
| static unsigned char * | fileSessionKey = NULL |
| static unsigned char * | loginToken = NULL |
| static int | loginTokenLength = 0 |
| static unsigned char * | fileAgentKey = NULL |
| static unsigned char * | fileAgentToken = NULL |
| static int | fileAgentTokenLength = 0 |
| static unsigned char * | clientKey = NULL |
| static int | clientKeyLength = 0 |
| static unsigned char * | fileShareToken = NULL |
Definition at line 26 of file evapacket.h.
|
|
Definition at line 28 of file evapacket.h. |
|
||||||||||||||||
|
Definition at line 53 of file evapacket.cpp. |
|
||||||||||||
|
Definition at line 60 of file evapacket.cpp. |
|
|
Definition at line 87 of file evapacket.cpp. |
|
|
Definition at line 92 of file evapacket.cpp. |
|
|
Definition at line 195 of file evapacket.cpp. References clientKey, clientKeyLength, fileAgentKey, fileAgentToken, fileAgentTokenLength, fileSessionKey, fileShareToken, loginToken, loginTokenLength, passwordKey, and sessionKey. |
|
|
Definition at line 65 of file evapacket.h. References clientKey. |
|
|
Definition at line 66 of file evapacket.h. References clientKeyLength. |
|
|
Definition at line 41 of file evapacket.h. References command. Referenced by operator=(), operator==(), and InPacket::setInPacket(). |
|
|
Definition at line 61 of file evapacket.h. References fileAgentKey. Referenced by SendFileNotifyAgentPacket::putContents(). |
|
|
Definition at line 62 of file evapacket.h. References fileAgentToken. |
|
|
Definition at line 63 of file evapacket.h. References fileAgentTokenLength. |
|
|
Definition at line 79 of file evapacket.h. References fileSessionKey. Referenced by SendIM::putBody(). |
|
|
Definition at line 64 of file evapacket.h. References fileShareToken. |
|
|
Definition at line 80 of file evapacket.h. References loginToken. Referenced by LoginPacket::putBody(). |
|
|
Definition at line 81 of file evapacket.h. References loginTokenLength. Referenced by LoginPacket::putBody(). |
|
|
Definition at line 78 of file evapacket.h. References passwordKey. Referenced by InPacket::decryptBody(), LogoutPacket::putBody(), and LoginPacket::putBody(). |
|
|
Definition at line 50 of file evapacket.h. References qqNum. Referenced by ModifyInfoReplyPacket::parseBody(), QunCreatePacket::putBody(), KeepAlivePacket::putBody(), SendIM::putBody(), and OutPacket::putHead(). |
|
|
Definition at line 42 of file evapacket.h. References sequence. Referenced by operator=(), ReceiveIMPacket::operator=(), operator==(), ReceiveIMPacket::ReceiveIMPacket(), and InPacket::setInPacket(). |
|
|
Definition at line 77 of file evapacket.h. References sessionKey. Referenced by InPacket::decryptBody(), OutPacket::encryptBody(), and LoginReplyPacket::parseBody(). |
|
|
Definition at line 40 of file evapacket.h. References version. Referenced by operator=(), and InPacket::setInPacket(). |
|
|
Definition at line 110 of file evapacket.cpp. |
|
|
Definition at line 57 of file evapacket.h. References clientKeyLength. |
|
|
Definition at line 58 of file evapacket.h. References fileAgentKey. |
|
|
Definition at line 59 of file evapacket.h. References fileAgentToken. |
|
|
Definition at line 56 of file evapacket.h. References loginToken. |
|
|
Definition at line 54 of file evapacket.h. References mIsUDP. Referenced by OutPacket::fill(), operator=(), and OutPacket::putHead(). |
|
|
Definition at line 101 of file evapacket.cpp. References command, getCommand(), getSequence(), getVersion(), isUDP(), mIsUDP, sequence, and version. Here is the call graph for this function: ![]() |
|
|
Definition at line 96 of file evapacket.cpp. References command, getCommand(), getSequence(), and sequence. Here is the call graph for this function: ![]() |
|
||||||||||||
|
Definition at line 148 of file evapacket.cpp. References clientKey, and clientKeyLength. Referenced by LoginReplyPacket::parseBody(). |
|
|
Definition at line 46 of file evapacket.h. |
|
|
Definition at line 157 of file evapacket.cpp. References fileAgentKey, and QQ_KEY_LENGTH. Referenced by EvaRequestKeyReplyPacket::parseBody(). |
|
||||||||||||
|
Definition at line 171 of file evapacket.cpp. References fileAgentToken, and fileAgentTokenLength. Referenced by EvaRequestKeyReplyPacket::parseBody(). |
|
|
Definition at line 131 of file evapacket.cpp. References fileSessionKey, and QQ_KEY_LENGTH. Referenced by LoginReplyPacket::parseBody(). |
|
|
Definition at line 186 of file evapacket.cpp. References fileShareToken. Referenced by LoginReplyPacket::parseBody(). |
|
||||||||||||
|
Definition at line 139 of file evapacket.cpp. References loginToken, and loginTokenLength. Referenced by RequestLoginTokenReplyPacket::parseBody(). |
|
|
Definition at line 123 of file evapacket.cpp. References passwordKey, and QQ_KEY_LENGTH. |
|
|
Reimplemented in EvaMemoPacket, EvaMemoReplyPacket, QunModifyCardPacket, QunAdminOpPacket, QunTransferPacket, and SearchUserPacket. Definition at line 51 of file evapacket.h. References qqNum. |
|
|
Definition at line 47 of file evapacket.h. |
|
|
Definition at line 115 of file evapacket.cpp. References QQ_KEY_LENGTH, and sessionKey. Referenced by LoginReplyPacket::parseBody(). |
|
|
Definition at line 53 of file evapacket.h. References mIsUDP. |
|
|
Definition at line 45 of file evapacket.h. |
|
|
Reimplemented in LoginReplyPacket. Definition at line 103 of file evapacket.h. Referenced by clearAllKeys(), getClientKey(), and setClientKey(). |
|
|
Definition at line 104 of file evapacket.h. Referenced by clearAllKeys(), getClientKeyLength(), isClientKeySet(), and setClientKey(). |
|
|
Definition at line 71 of file evapacket.h. Referenced by InPacket::decryptBody(), OutPacket::encryptBody(), getCommand(), hashCode(), operator=(), operator==(), Packet(), OutPacket::putHead(), and InPacket::setInPacket(). |
|
|
Definition at line 99 of file evapacket.h. Referenced by clearAllKeys(), getFileAgentKey(), isFileAgentKeySet(), and setFileAgentKey(). |
|
|
Definition at line 100 of file evapacket.h. Referenced by clearAllKeys(), getFileAgentToken(), isFileAgentTokenSet(), and setFileAgentToken(). |
|
|
Definition at line 101 of file evapacket.h. Referenced by clearAllKeys(), getFileAgentTokenLength(), and setFileAgentToken(). |
|
|
Definition at line 95 of file evapacket.h. Referenced by clearAllKeys(), getFileSessionKey(), and setFileSessionKey(). |
|
|
Definition at line 106 of file evapacket.h. Referenced by clearAllKeys(), getFileShareToken(), and setFileShareToken(). |
|
|
Initial value: {
0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01,
0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01
}
Definition at line 74 of file evapacket.h. Referenced by InPacket::decryptBody(), and LoginPacket::putBody(). |
|
|
Definition at line 96 of file evapacket.h. Referenced by clearAllKeys(), getLoginToken(), isLoginTokenSet(), and setLoginToken(). |
|
|
Definition at line 97 of file evapacket.h. Referenced by clearAllKeys(), getLoginTokenLength(), and setLoginToken(). |
|
|
Definition at line 92 of file evapacket.h. Referenced by isUDP(), operator=(), Packet(), and setUDP(). |
|
|
Definition at line 94 of file evapacket.h. Referenced by clearAllKeys(), InPacket::decryptBody(), getPasswordKey(), and setPasswordKey(). |
|
|
Reimplemented in AddFriendPacket, LoginReplyPacket, QunRequestCardPacket, QunModifyCardPacket, QunAdminOpPacket, QunTransferPacket, and GetUserInfoPacket. Definition at line 91 of file evapacket.h. |
|
|
Definition at line 72 of file evapacket.h. Referenced by getSequence(), hashCode(), LogoutPacket::LogoutPacket(), operator=(), ReceiveIMPacket::operator=(), operator==(), Packet(), SendIM::putBody(), OutPacket::putHead(), ReceiveIMPacket::ReceiveIMPacket(), and InPacket::setInPacket(). |
|
|
Definition at line 93 of file evapacket.h. Referenced by clearAllKeys(), InPacket::decryptBody(), OutPacket::encryptBody(), getSessionKey(), and setSessionKey(). |
|
|
Definition at line 70 of file evapacket.h. Referenced by getVersion(), operator=(), Packet(), SendIM::putBody(), OutPacket::putHead(), and InPacket::setInPacket(). |
1.4.4