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

EvaPicPacket Class Reference

#include <evapicpacket.h>

Inherited by EvaPicInPacket, and EvaPicOutPacket.

Inheritance diagram for EvaPicPacket:

Inheritance graph
[legend]
List of all members.

Public Member Functions

 EvaPicPacket ()
 EvaPicPacket (unsigned char *buf, int len)
 EvaPicPacket (const unsigned short source, const unsigned short command, const unsigned short sequence)
 EvaPicPacket (unsigned char *buf, int *len, const int cryptStart)
 EvaPicPacket (const EvaPicPacket &rhs)
 ~EvaPicPacket ()
EvaPicPacketoperator= (const EvaPicPacket &rhs)
const int hashCode ()
const unsigned char getHeader () const
const unsigned char getTail () const
const unsigned short getSource () const
const unsigned short getCommand () const
const unsigned short getSequence () const
const int getCryptPosition () const
void setKey (const unsigned char *key)
const bool isValid () const
const unsigned short getPacketLength () const

Static Public Member Functions

static void setQQ (const unsigned int id)
static unsigned int getQQ ()
static void setFileAgentKey (const unsigned char *key)
static void clearKey ()

Protected Member Functions

void setCryptPosition (const int position)
const int parseHeader (unsigned char *buf)

Protected Attributes

unsigned char header
unsigned short source
unsigned short command
unsigned short sequence
unsigned char * key
unsigned char tail
unsigned int cryptPosition
unsigned short packetLength

Static Protected Attributes

static unsigned char * fileAgentKey = NULL
static unsigned int myQQ = 0

Detailed Description

Definition at line 44 of file evapicpacket.h.


Constructor & Destructor Documentation

EvaPicPacket::EvaPicPacket  )  [inline]
 

Definition at line 46 of file evapicpacket.h.

EvaPicPacket::EvaPicPacket unsigned char *  buf,
int  len
 

Definition at line 33 of file evapicpacket.cpp.

References parseHeader(), and tail.

Here is the call graph for this function:

EvaPicPacket::EvaPicPacket const unsigned short  source,
const unsigned short  command,
const unsigned short  sequence
 

Definition at line 40 of file evapicpacket.cpp.

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

Definition at line 45 of file evapicpacket.cpp.

References FAMILY_05_TAIL, parseHeader(), and tail.

Here is the call graph for this function:

EvaPicPacket::EvaPicPacket const EvaPicPacket rhs  ) 
 

Definition at line 55 of file evapicpacket.cpp.

EvaPicPacket::~EvaPicPacket  ) 
 

Definition at line 60 of file evapicpacket.cpp.

References key.


Member Function Documentation

void EvaPicPacket::clearKey  )  [static]
 

Definition at line 127 of file evapicpacket.cpp.

References fileAgentKey.

const unsigned short EvaPicPacket::getCommand  )  const [inline]
 

Definition at line 65 of file evapicpacket.h.

References command.

Referenced by operator=(), EvaPicOutPacket::putHead(), and EvaPicInPacket::setInPacket().

const int EvaPicPacket::getCryptPosition  )  const [inline]
 

Definition at line 68 of file evapicpacket.h.

References cryptPosition.

Referenced by EvaPicInPacket::decryptBody(), EvaPicOutPacket::fill(), and operator=().

const unsigned char EvaPicPacket::getHeader  )  const [inline]
 

Definition at line 62 of file evapicpacket.h.

References header.

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

const unsigned short EvaPicPacket::getPacketLength  )  const [inline]
 

Definition at line 75 of file evapicpacket.h.

References packetLength.

Referenced by EvaPicInPacket::cutOffPacketData().

static unsigned int EvaPicPacket::getQQ  )  [inline, static]
 

Definition at line 60 of file evapicpacket.h.

References myQQ.

Referenced by operator=(), and EvaPicOutPacket::putHead().

const unsigned short EvaPicPacket::getSequence  )  const [inline]
 

Definition at line 66 of file evapicpacket.h.

References sequence.

Referenced by operator=(), EvaPicOutPacket::putHead(), and EvaPicInPacket::setInPacket().

const unsigned short EvaPicPacket::getSource  )  const [inline]
 

Definition at line 64 of file evapicpacket.h.

References source.

Referenced by operator=(), EvaPicOutPacket::putHead(), and EvaPicInPacket::setInPacket().

const unsigned char EvaPicPacket::getTail  )  const [inline]
 

Definition at line 63 of file evapicpacket.h.

References tail.

Referenced by operator=().

const int EvaPicPacket::hashCode  ) 
 

Definition at line 66 of file evapicpacket.cpp.

References command, and sequence.

const bool EvaPicPacket::isValid  )  const [inline]
 

Definition at line 74 of file evapicpacket.h.

References FAMILY_05_TAG, FAMILY_05_TAIL, header, and tail.

EvaPicPacket & EvaPicPacket::operator= const EvaPicPacket rhs  ) 
 

Definition at line 102 of file evapicpacket.cpp.

References command, cryptPosition, getCommand(), getCryptPosition(), getHeader(), getQQ(), getSequence(), getSource(), getTail(), header, myQQ, sequence, source, and tail.

Here is the call graph for this function:

const int EvaPicPacket::parseHeader unsigned char *  buf  )  [protected]
 

Definition at line 71 of file evapicpacket.cpp.

References command, header, myQQ, packetLength, sequence, and source.

Referenced by EvaPicPacket().

void EvaPicPacket::setCryptPosition const int  position  )  [inline, protected]
 

Definition at line 77 of file evapicpacket.h.

References cryptPosition.

void EvaPicPacket::setFileAgentKey const unsigned char *  key  )  [static]
 

Definition at line 114 of file evapicpacket.cpp.

References fileAgentKey.

void EvaPicPacket::setKey const unsigned char *  key  ) 
 

Definition at line 121 of file evapicpacket.cpp.

References key.

static void EvaPicPacket::setQQ const unsigned int  id  )  [inline, static]
 

Definition at line 59 of file evapicpacket.h.

References myQQ.


Member Data Documentation

unsigned short EvaPicPacket::command [protected]
 

Definition at line 85 of file evapicpacket.h.

Referenced by getCommand(), hashCode(), operator=(), parseHeader(), and EvaPicInPacket::setInPacket().

unsigned int EvaPicPacket::cryptPosition [protected]
 

Definition at line 89 of file evapicpacket.h.

Referenced by EvaPicTransferPacket::EvaPicTransferPacket(), EvaRequestAgentPacket::EvaRequestAgentPacket(), EvaRequestFacePacket::EvaRequestFacePacket(), EvaRequestStartPacket::EvaRequestStartPacket(), getCryptPosition(), operator=(), and setCryptPosition().

unsigned char * EvaPicPacket::fileAgentKey = NULL [static, protected]
 

Definition at line 79 of file evapicpacket.h.

Referenced by clearKey(), EvaPicInPacket::decryptBody(), EvaPicOutPacket::encryptBody(), EvaRequestAgentPacket::getFileAgentToken(), and setFileAgentKey().

unsigned char EvaPicPacket::header [protected]
 

Definition at line 83 of file evapicpacket.h.

Referenced by getHeader(), isValid(), operator=(), parseHeader(), and EvaPicInPacket::setInPacket().

unsigned char* EvaPicPacket::key [protected]
 

Definition at line 87 of file evapicpacket.h.

Referenced by EvaPicOutPacket::encryptBody(), setKey(), and ~EvaPicPacket().

unsigned int EvaPicPacket::myQQ = 0 [static, protected]
 

Definition at line 80 of file evapicpacket.h.

Referenced by getQQ(), operator=(), parseHeader(), and setQQ().

unsigned short EvaPicPacket::packetLength [protected]
 

Definition at line 90 of file evapicpacket.h.

Referenced by getPacketLength(), and parseHeader().

unsigned short EvaPicPacket::sequence [protected]
 

Definition at line 86 of file evapicpacket.h.

Referenced by getSequence(), hashCode(), operator=(), EvaPicTransferReplyPacket::parseBody(), parseHeader(), and EvaPicInPacket::setInPacket().

unsigned short EvaPicPacket::source [protected]
 

Definition at line 84 of file evapicpacket.h.

Referenced by getSource(), operator=(), EvaPicTransferReplyPacket::parseBody(), parseHeader(), and EvaPicInPacket::setInPacket().

unsigned char EvaPicPacket::tail [protected]
 

Definition at line 88 of file evapicpacket.h.

Referenced by EvaPicPacket(), getTail(), isValid(), and operator=().


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