#include <evapacket.h>
Inherits Packet.
Inherited by AddFriendAuthPacket, AddFriendPacket, ChangeStatusPacket, DeleteFriendPacket, DeleteMePacket, DownloadGroupFriendPacket, EvaGetLevelPacket, EvaMemoPacket, EvaRequestKeyPacket, GetFriendListPacket, GetOnlineFriendsPacket, GetUserInfoPacket, GroupNameOpPacket, KeepAlivePacket, LoginPacket, LogoutPacket, ModifyInfoPacket, QunPacket, ReceiveIMReplyPacket, RequestExtraInfoPacket, RequestLoginTokenPacket, SearchUserPacket, SendIM, SignaturePacket, and UploadGroupFriendPacket.
Inheritance diagram for OutPacket:


Public Member Functions | |
| OutPacket () | |
| OutPacket (const short command, const bool needAck) | |
| OutPacket (const OutPacket &rhs) | |
| virtual | ~OutPacket () |
| const int | getResendCount () const |
| bool | fill (unsigned char *buf, int *len) |
| bool | needAck () const |
| const bool | needResend () |
| OutPacket & | operator= (const OutPacket &rhs) |
Protected Member Functions | |
| virtual int | putBody (unsigned char *buf) |
Private Member Functions | |
| int | putHead (unsigned char *buf) |
| void | encryptBody (unsigned char *b, int length, unsigned char *decryptedBody, int *bodyLen) |
Private Attributes | |
| bool | mNeedAck |
| int | resendCount |
Static Private Attributes | |
| static short | startSequenceNum = 5 |
Definition at line 110 of file evapacket.h.
|
|
Definition at line 112 of file evapacket.h. |
|
||||||||||||
|
Definition at line 225 of file evapacket.cpp. References mNeedAck, and resendCount. |
|
|
Definition at line 232 of file evapacket.cpp. References getResendCount(), mNeedAck, needAck(), and resendCount. Here is the call graph for this function: ![]() |
|
|
Definition at line 115 of file evapacket.h. |
|
||||||||||||||||||||
|
Definition at line 309 of file evapacket.cpp. References Packet::command, EvaCrypt::encrypt(), Packet::getSessionKey(), QQ_CMD_LOGIN, QQ_CMD_REQUEST_LOGIN_TOKEN, and Packet::sessionKey. Referenced by fill(). Here is the call graph for this function: ![]() |
|
||||||||||||
|
Definition at line 239 of file evapacket.cpp. References encryptBody(), Packet::isUDP(), MAX_PACKET_SIZE, putBody(), putHead(), and QQ_PACKET_TAIL. Here is the call graph for this function: ![]() |
|
|
Definition at line 117 of file evapacket.h. References resendCount. Referenced by operator=(), and OutPacket(). |
|
|
Definition at line 120 of file evapacket.h. References mNeedAck. Referenced by operator=(), and OutPacket(). |
|
|
Definition at line 121 of file evapacket.h. References resendCount. |
|
|
Definition at line 266 of file evapacket.cpp. References getResendCount(), mNeedAck, needAck(), and resendCount. Here is the call graph for this function: ![]() |
|
|
|
Definition at line 281 of file evapacket.cpp. References Packet::command, Packet::getQQ(), Packet::isUDP(), QQ_PACKET_TAG, Packet::sequence, and Packet::version. Referenced by fill(). Here is the call graph for this function: ![]() |
|
|
Definition at line 129 of file evapacket.h. Referenced by needAck(), operator=(), and OutPacket(). |
|
|
Definition at line 130 of file evapacket.h. Referenced by getResendCount(), needResend(), operator=(), and OutPacket(). |
|
|
Definition at line 128 of file evapacket.h. |
1.4.4