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

EvaPicInPacket Class Reference

#include <evapicpacket.h>

Inherits EvaPicPacket.

Inherited by EvaPicTransferReplyPacket, EvaRequestFaceReplyPacket, EvaRequestStartReplyPacket, and RequestAgentReplyPacket.

Inheritance diagram for EvaPicInPacket:

Inheritance graph
[legend]
Collaboration diagram for EvaPicInPacket:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 EvaPicInPacket ()
 EvaPicInPacket (unsigned char *buf, int len)
 EvaPicInPacket (unsigned char *buf, int len, const unsigned int cryptStart)
 EvaPicInPacket (const EvaPicInPacket &rhs)
virtual ~EvaPicInPacket ()
void parse ()
const int getLength () const
unsigned char * getBody () const
void setInPacket (const EvaPicInPacket *packet)
void cutOffPacketData ()
EvaPicInPacketoperator= (const EvaPicInPacket &rhs)
unsigned char * getRawBody () const
unsigned int getRawBodyLength () const
void printRawData ()

Protected Member Functions

virtual void parseBody ()

Protected Attributes

int bodyLength
unsigned char * decryptedBuf

Private Member Functions

void decryptBody (unsigned char *buf, int len)

Private Attributes

unsigned char * rawBody
unsigned int rawLength

Detailed Description

Definition at line 118 of file evapicpacket.h.


Constructor & Destructor Documentation

EvaPicInPacket::EvaPicInPacket  )  [inline]
 

Definition at line 120 of file evapicpacket.h.

EvaPicInPacket::EvaPicInPacket unsigned char *  buf,
int  len
 

Definition at line 249 of file evapicpacket.cpp.

References rawBody, and rawLength.

EvaPicInPacket::EvaPicInPacket unsigned char *  buf,
int  len,
const unsigned int  cryptStart
 

Definition at line 257 of file evapicpacket.cpp.

References decryptBody(), decryptedBuf, and MAX_PACKET_SIZE.

Here is the call graph for this function:

EvaPicInPacket::EvaPicInPacket const EvaPicInPacket rhs  ) 
 

Definition at line 265 of file evapicpacket.cpp.

EvaPicInPacket::~EvaPicInPacket  )  [virtual]
 

Definition at line 271 of file evapicpacket.cpp.

References decryptedBuf, and rawBody.


Member Function Documentation

void EvaPicInPacket::cutOffPacketData  ) 
 

Definition at line 280 of file evapicpacket.cpp.

References EvaPicPacket::getPacketLength(), and rawLength.

Here is the call graph for this function:

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

Definition at line 295 of file evapicpacket.cpp.

References bodyLength, EvaCrypt::decrypt(), decryptedBuf, EvaPicPacket::fileAgentKey, EvaPicPacket::getCryptPosition(), and MAX_PACKET_SIZE.

Referenced by EvaPicInPacket().

Here is the call graph for this function:

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

Definition at line 128 of file evapicpacket.h.

References decryptedBuf.

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

const int EvaPicInPacket::getLength  )  const [inline]
 

Definition at line 127 of file evapicpacket.h.

References bodyLength.

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

unsigned char* EvaPicInPacket::getRawBody  )  const [inline]
 

Definition at line 135 of file evapicpacket.h.

References rawBody.

unsigned int EvaPicInPacket::getRawBodyLength  )  const [inline]
 

Definition at line 136 of file evapicpacket.h.

References rawLength.

EvaPicInPacket & EvaPicInPacket::operator= const EvaPicInPacket rhs  ) 
 

Definition at line 285 of file evapicpacket.cpp.

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

Here is the call graph for this function:

void EvaPicInPacket::parse  )  [inline]
 

Definition at line 126 of file evapicpacket.h.

References parseBody().

Here is the call graph for this function:

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

Reimplemented in RequestAgentReplyPacket, EvaRequestFaceReplyPacket, EvaRequestStartReplyPacket, and EvaPicTransferReplyPacket.

Definition at line 142 of file evapicpacket.h.

Referenced by parse().

void EvaPicInPacket::printRawData  ) 
 

Definition at line 340 of file evapicpacket.cpp.

References bodyLength, and decryptedBuf.

void EvaPicInPacket::setInPacket const EvaPicInPacket packet  ) 
 

Definition at line 328 of file evapicpacket.cpp.

References bodyLength, EvaPicPacket::command, decryptedBuf, getBody(), EvaPicPacket::getCommand(), EvaPicPacket::getHeader(), getLength(), EvaPicPacket::getSequence(), EvaPicPacket::getSource(), EvaPicPacket::header, EvaPicPacket::sequence, and EvaPicPacket::source.

Here is the call graph for this function:


Member Data Documentation

int EvaPicInPacket::bodyLength [protected]
 

Definition at line 139 of file evapicpacket.h.

Referenced by decryptBody(), getLength(), operator=(), printRawData(), and setInPacket().

unsigned char* EvaPicInPacket::decryptedBuf [protected]
 

Definition at line 140 of file evapicpacket.h.

Referenced by decryptBody(), EvaPicInPacket(), getBody(), operator=(), EvaPicTransferReplyPacket::parseBody(), EvaRequestStartReplyPacket::parseBody(), EvaRequestFaceReplyPacket::parseBody(), RequestAgentReplyPacket::parseBody(), printRawData(), setInPacket(), and ~EvaPicInPacket().

unsigned char* EvaPicInPacket::rawBody [private]
 

Definition at line 145 of file evapicpacket.h.

Referenced by EvaPicInPacket(), getRawBody(), and ~EvaPicInPacket().

unsigned int EvaPicInPacket::rawLength [private]
 

Definition at line 146 of file evapicpacket.h.

Referenced by cutOffPacketData(), EvaPicInPacket(), and getRawBodyLength().


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