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

EvaFTAgentPacket Class Reference

#include <evaftpacket.h>

Inherits EvaFTPacket.

Inherited by EvaFTAgentAckReady, EvaFTAgentAskReady, EvaFTAgentCreate, EvaFTAgentCreateReply, EvaFTAgentLogin, EvaFTAgentLoginReply, EvaFTAgentStart, EvaFTAgentStartReply, EvaFTAgentTransfer, and EvaFTAgentTransferReply.

Inheritance diagram for EvaFTAgentPacket:

Inheritance graph
[legend]
Collaboration diagram for EvaFTAgentPacket:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 EvaFTAgentPacket (const unsigned char *buf, const int len)
 EvaFTAgentPacket (const short cmd)
void setVersion (const unsigned short version)
void setSequence (const unsigned short seq)
void setCommand (const unsigned short cmd)
void setQQ (const int qq)
void setSessionId (const unsigned int sid)
const unsigned short getVersion () const
const unsigned short getSequence () const
const unsigned short getCommand () const
const int getQQ () const
const unsigned int getSessionId () const
void setFileAgentKey (const unsigned char *key)

Protected Member Functions

const int parseHeader (unsigned char *buf)
const int fillHeader (unsigned char *buf)

Protected Attributes

unsigned char m_FileAgentKey [16]
unsigned int m_Session

Private Attributes

unsigned short m_Version
unsigned short m_Command
unsigned short m_Sequence
int m_Id

Detailed Description

Definition at line 75 of file evaftpacket.h.


Constructor & Destructor Documentation

EvaFTAgentPacket::EvaFTAgentPacket const unsigned char *  buf,
const int  len
 

============================================================================

Definition at line 123 of file evaftpacket.cpp.

References EvaFTPacket::m_HasTags.

EvaFTAgentPacket::EvaFTAgentPacket const short  cmd  ) 
 

Definition at line 129 of file evaftpacket.cpp.

References EvaFTPacket::m_HasLength, EvaFTPacket::m_LengthOffset, QQ_FILE_AGENT_PACKET_TAG, QQ_FILE_AGENT_PACKET_TAIL, and EvaFTPacket::setPacketTag().

Here is the call graph for this function:


Member Function Documentation

const int EvaFTAgentPacket::fillHeader unsigned char *  buf  )  [protected, virtual]
 

Reimplemented from EvaFTPacket.

Definition at line 158 of file evaftpacket.cpp.

References m_Command, m_Id, m_Sequence, m_Session, m_Version, QQ_FILE_AGENT_CMD_CREATE, EvaUtil::write16(), and EvaUtil::write32().

Here is the call graph for this function:

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

Definition at line 88 of file evaftpacket.h.

References m_Command.

const int EvaFTAgentPacket::getQQ  )  const [inline]
 

Definition at line 89 of file evaftpacket.h.

References m_Id.

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

Definition at line 87 of file evaftpacket.h.

References m_Sequence.

const unsigned int EvaFTAgentPacket::getSessionId  )  const [inline]
 

Definition at line 90 of file evaftpacket.h.

References m_Session.

const unsigned short EvaFTAgentPacket::getVersion  )  const [inline]
 

Definition at line 86 of file evaftpacket.h.

References m_Version.

const int EvaFTAgentPacket::parseHeader unsigned char *  buf  )  [protected, virtual]
 

Reimplemented from EvaFTPacket.

Definition at line 137 of file evaftpacket.cpp.

References EvaFTPacket::getBodyLength(), EvaFTPacket::getTag(), EvaFTPacket::getTail(), m_Command, m_Id, m_Sequence, m_Session, m_Version, QQ_FILE_AGENT_CMD_CREATE, QQ_FILE_AGENT_PACKET_TAG, QQ_FILE_AGENT_PACKET_TAIL, EvaUtil::read16(), and EvaUtil::read32().

Here is the call graph for this function:

void EvaFTAgentPacket::setCommand const unsigned short  cmd  )  [inline]
 

Definition at line 83 of file evaftpacket.h.

References m_Command.

void EvaFTAgentPacket::setFileAgentKey const unsigned char *  key  ) 
 

Definition at line 174 of file evaftpacket.cpp.

References m_FileAgentKey.

void EvaFTAgentPacket::setQQ const int  qq  )  [inline]
 

Definition at line 84 of file evaftpacket.h.

References m_Id.

void EvaFTAgentPacket::setSequence const unsigned short  seq  )  [inline]
 

Definition at line 82 of file evaftpacket.h.

References m_Sequence.

void EvaFTAgentPacket::setSessionId const unsigned int  sid  )  [inline]
 

Definition at line 85 of file evaftpacket.h.

References m_Session.

void EvaFTAgentPacket::setVersion const unsigned short  version  )  [inline]
 

Definition at line 81 of file evaftpacket.h.

References m_Version.


Member Data Documentation

unsigned short EvaFTAgentPacket::m_Command [private]
 

Definition at line 103 of file evaftpacket.h.

Referenced by fillHeader(), getCommand(), parseHeader(), and setCommand().

unsigned char EvaFTAgentPacket::m_FileAgentKey[16] [protected]
 

Definition at line 99 of file evaftpacket.h.

Referenced by EvaFTAgentStart::fillBody(), EvaFTAgentAckReady::fillBody(), EvaFTAgentLogin::fillBody(), EvaFTAgentCreate::fillBody(), EvaFTAgentStartReply::parseBody(), EvaFTAgentAskReady::parseBody(), EvaFTAgentLoginReply::parseBody(), EvaFTAgentCreateReply::parseBody(), and setFileAgentKey().

int EvaFTAgentPacket::m_Id [private]
 

Reimplemented in EvaFTAgentCreate.

Definition at line 105 of file evaftpacket.h.

Referenced by fillHeader(), getQQ(), parseHeader(), and setQQ().

unsigned short EvaFTAgentPacket::m_Sequence [private]
 

Definition at line 104 of file evaftpacket.h.

Referenced by fillHeader(), getSequence(), parseHeader(), and setSequence().

unsigned int EvaFTAgentPacket::m_Session [protected]
 

Definition at line 100 of file evaftpacket.h.

Referenced by fillHeader(), getSessionId(), EvaFTAgentCreateReply::parseBody(), parseHeader(), and setSessionId().

unsigned short EvaFTAgentPacket::m_Version [private]
 

Definition at line 102 of file evaftpacket.h.

Referenced by fillHeader(), getVersion(), parseHeader(), and setVersion().


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