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

EvaPicOutPacket Class Reference

#include <evapicpacket.h>

Inherits EvaPicPacket.

Inherited by EvaPicTransferPacket, EvaRequestAgentPacket, EvaRequestFacePacket, and EvaRequestStartPacket.

Inheritance diagram for EvaPicOutPacket:

Inheritance graph
[legend]
Collaboration diagram for EvaPicOutPacket:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 EvaPicOutPacket ()
 EvaPicOutPacket (const unsigned short command, const bool ack)
 EvaPicOutPacket (const EvaPicOutPacket &rhs)
virtual ~EvaPicOutPacket ()
EvaPicOutPacketoperator= (const EvaPicOutPacket &rhs)
const int getResendCount () const
const bool fill (unsigned char *buf, int *len)
const bool needAck () const
const bool needResend ()

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 sequenceStart = 5

Detailed Description

Definition at line 93 of file evapicpacket.h.


Constructor & Destructor Documentation

EvaPicOutPacket::EvaPicOutPacket  )  [inline]
 

Definition at line 95 of file evapicpacket.h.

EvaPicOutPacket::EvaPicOutPacket const unsigned short  command,
const bool  ack
 

Definition at line 139 of file evapicpacket.cpp.

References mNeedAck, and resendCount.

EvaPicOutPacket::EvaPicOutPacket const EvaPicOutPacket rhs  ) 
 

Definition at line 146 of file evapicpacket.cpp.

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

Definition at line 99 of file evapicpacket.h.


Member Function Documentation

void EvaPicOutPacket::encryptBody unsigned char *  b,
int  length,
unsigned char *  decryptedBody,
int *  bodyLen
[private]
 

Definition at line 232 of file evapicpacket.cpp.

References EvaCrypt::encrypt(), EvaPicPacket::fileAgentKey, and EvaPicPacket::key.

Referenced by fill().

Here is the call graph for this function:

const bool EvaPicOutPacket::fill unsigned char *  buf,
int *  len
 

Definition at line 152 of file evapicpacket.cpp.

References encryptBody(), FAMILY_05_TAIL, EvaPicPacket::getCryptPosition(), MAX_PACKET_SIZE, putBody(), and putHead().

Here is the call graph for this function:

const int EvaPicOutPacket::getResendCount  )  const [inline]
 

Definition at line 103 of file evapicpacket.h.

References resendCount.

Referenced by operator=().

const bool EvaPicOutPacket::needAck  )  const [inline]
 

Definition at line 105 of file evapicpacket.h.

References mNeedAck.

Referenced by operator=().

const bool EvaPicOutPacket::needResend  )  [inline]
 

Definition at line 106 of file evapicpacket.h.

References resendCount.

EvaPicOutPacket & EvaPicOutPacket::operator= const EvaPicOutPacket rhs  ) 
 

Definition at line 189 of file evapicpacket.cpp.

References getResendCount(), mNeedAck, needAck(), and resendCount.

Here is the call graph for this function:

int EvaPicOutPacket::putBody unsigned char *  buf  )  [protected, virtual]
 

Reimplemented in EvaRequestAgentPacket, EvaRequestFacePacket, EvaRequestStartPacket, and EvaPicTransferPacket.

Definition at line 197 of file evapicpacket.cpp.

Referenced by fill().

int EvaPicOutPacket::putHead unsigned char *  buf  )  [private]
 

Definition at line 204 of file evapicpacket.cpp.

References FAMILY_05_TAG, EvaPicPacket::getCommand(), EvaPicPacket::getQQ(), EvaPicPacket::getSequence(), and EvaPicPacket::getSource().

Referenced by fill().

Here is the call graph for this function:


Member Data Documentation

bool EvaPicOutPacket::mNeedAck [private]
 

Definition at line 111 of file evapicpacket.h.

Referenced by EvaPicOutPacket(), needAck(), and operator=().

int EvaPicOutPacket::resendCount [private]
 

Definition at line 112 of file evapicpacket.h.

Referenced by EvaPicOutPacket(), getResendCount(), needResend(), and operator=().

short EvaPicOutPacket::sequenceStart = 5 [static, private]
 

Definition at line 110 of file evapicpacket.h.


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