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

EvaFTSynPacket Class Reference

#include <evaftpacket.h>

Inherits EvaFTPacket.

Inherited by EvaFTSynCreate, and EvaFTSynCreateReply.

Inheritance diagram for EvaFTSynPacket:

Inheritance graph
[legend]
Collaboration diagram for EvaFTSynPacket:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 EvaFTSynPacket (const unsigned char *buf, const int len)
 EvaFTSynPacket (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

Static Private Attributes

static const unsigned char m_StartTag = 0x02

Detailed Description

Definition at line 108 of file evaftpacket.h.


Constructor & Destructor Documentation

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

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

Definition at line 186 of file evaftpacket.cpp.

EvaFTSynPacket::EvaFTSynPacket const short  cmd  ) 
 

Definition at line 191 of file evaftpacket.cpp.

References EvaFTPacket::m_HasLength, and EvaFTPacket::m_LengthOffset.


Member Function Documentation

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

Reimplemented from EvaFTPacket.

Definition at line 214 of file evaftpacket.cpp.

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

Here is the call graph for this function:

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

Definition at line 120 of file evaftpacket.h.

References m_Command.

const int EvaFTSynPacket::getQQ  )  const [inline]
 

Definition at line 121 of file evaftpacket.h.

References m_Id.

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

Definition at line 119 of file evaftpacket.h.

References m_Sequence.

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

Definition at line 122 of file evaftpacket.h.

References m_Session.

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

Definition at line 118 of file evaftpacket.h.

References m_Version.

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

Reimplemented from EvaFTPacket.

Definition at line 198 of file evaftpacket.cpp.

References EvaFTPacket::getBodyLength(), m_Command, m_Id, m_Sequence, m_StartTag, m_Version, EvaUtil::read16(), and EvaUtil::read32().

Here is the call graph for this function:

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

Definition at line 115 of file evaftpacket.h.

References m_Command.

void EvaFTSynPacket::setFileAgentKey const unsigned char *  key  ) 
 

Definition at line 227 of file evaftpacket.cpp.

References m_FileAgentKey.

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

Definition at line 116 of file evaftpacket.h.

References m_Id.

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

Definition at line 114 of file evaftpacket.h.

References m_Sequence.

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

Definition at line 117 of file evaftpacket.h.

References m_Session.

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

Definition at line 113 of file evaftpacket.h.

References m_Version.


Member Data Documentation

unsigned short EvaFTSynPacket::m_Command [private]
 

Definition at line 134 of file evaftpacket.h.

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

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

Definition at line 129 of file evaftpacket.h.

Referenced by EvaFTSynCreate::fillBody(), EvaFTSynCreateReply::parseBody(), and setFileAgentKey().

int EvaFTSynPacket::m_Id [private]
 

Definition at line 137 of file evaftpacket.h.

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

unsigned short EvaFTSynPacket::m_Sequence [private]
 

Definition at line 135 of file evaftpacket.h.

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

unsigned int EvaFTSynPacket::m_Session [protected]
 

Definition at line 130 of file evaftpacket.h.

Referenced by getSessionId(), EvaFTSynCreateReply::parseBody(), and setSessionId().

const unsigned char EvaFTSynPacket::m_StartTag = 0x02 [static, private]
 

Definition at line 132 of file evaftpacket.h.

Referenced by fillHeader(), and parseHeader().

unsigned short EvaFTSynPacket::m_Version [private]
 

Definition at line 133 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:12 2006 for libeva by  doxygen 1.4.4