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

EvaFTPacket Class Reference

#include <evaftpacket.h>

Inherited by EvaFTAgentPacket, and EvaFTSynPacket.

Inheritance diagram for EvaFTPacket:

Inheritance graph
[legend]
List of all members.

Public Member Functions

 EvaFTPacket (const unsigned char *buf, const int len)
 EvaFTPacket ()
virtual ~EvaFTPacket ()
const bool parse ()
const bool fill (unsigned char *buf, int *len)
const unsigned char * getBody () const
const int getBodyLength () const

Protected Member Functions

void setPacketTag (const unsigned char tag, const unsigned char tail)
virtual const int parseHeader (unsigned char *buf)
virtual const bool parseBody (unsigned char *buf, const int len)
virtual const int fillHeader (unsigned char *buf)
virtual const int fillBody (unsigned char *buf)
const unsigned char getTag () const
const unsigned char getTail () const

Protected Attributes

int m_HeaderLength
bool m_HasTags
bool m_HasLength
unsigned int m_LengthOffset

Private Attributes

unsigned char m_Tag
unsigned char m_Tail
unsigned char * m_Buffer
int m_BufferLength

Detailed Description

Definition at line 37 of file evaftpacket.h.


Constructor & Destructor Documentation

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

Definition at line 27 of file evaftpacket.cpp.

References m_Buffer, and m_BufferLength.

EvaFTPacket::EvaFTPacket  ) 
 

Definition at line 35 of file evaftpacket.cpp.

EvaFTPacket::~EvaFTPacket  )  [virtual]
 

Definition at line 40 of file evaftpacket.cpp.

References m_Buffer.


Member Function Documentation

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

Definition at line 60 of file evaftpacket.cpp.

References fillBody(), fillHeader(), m_HasLength, m_HasTags, m_LengthOffset, m_Tag, m_Tail, and EvaUtil::write16().

Here is the call graph for this function:

const int EvaFTPacket::fillBody unsigned char *  buf  )  [protected, virtual]
 

Reimplemented in EvaFTAgentCreate, EvaFTAgentLogin, EvaFTAgentTransfer, EvaFTAgentAckReady, EvaFTAgentStart, and EvaFTSynCreate.

Definition at line 113 of file evaftpacket.cpp.

Referenced by fill().

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

Reimplemented in EvaFTAgentPacket, and EvaFTSynPacket.

Definition at line 107 of file evaftpacket.cpp.

Referenced by fill().

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

Definition at line 51 of file evaftpacket.h.

References m_Buffer.

const int EvaFTPacket::getBodyLength  )  const [inline]
 

Definition at line 52 of file evaftpacket.h.

References m_BufferLength.

Referenced by EvaFTSynPacket::parseHeader(), and EvaFTAgentPacket::parseHeader().

const unsigned char EvaFTPacket::getTag  )  const [inline, protected]
 

Definition at line 60 of file evaftpacket.h.

References m_Tag.

Referenced by EvaFTAgentPacket::parseHeader().

const unsigned char EvaFTPacket::getTail  )  const [inline, protected]
 

Definition at line 61 of file evaftpacket.h.

References m_Tail.

Referenced by EvaFTAgentPacket::parseHeader().

const bool EvaFTPacket::parse  ) 
 

Definition at line 45 of file evaftpacket.cpp.

References m_Buffer, m_BufferLength, m_HasTags, m_HeaderLength, m_Tag, m_Tail, parseBody(), and parseHeader().

Here is the call graph for this function:

const bool EvaFTPacket::parseBody unsigned char *  buf,
const int  len
[protected, virtual]
 

Reimplemented in EvaFTAgentCreateReply, EvaFTAgentLoginReply, EvaFTAgentTransferReply, EvaFTAgentAskReady, EvaFTAgentStartReply, and EvaFTSynCreateReply.

Definition at line 101 of file evaftpacket.cpp.

Referenced by parse().

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

Reimplemented in EvaFTAgentPacket, and EvaFTSynPacket.

Definition at line 95 of file evaftpacket.cpp.

Referenced by parse().

void EvaFTPacket::setPacketTag const unsigned char  tag,
const unsigned char  tail
[protected]
 

Definition at line 88 of file evaftpacket.cpp.

References m_HasTags, m_Tag, and m_Tail.

Referenced by EvaFTAgentPacket::EvaFTAgentPacket().


Member Data Documentation

unsigned char* EvaFTPacket::m_Buffer [private]
 

Definition at line 71 of file evaftpacket.h.

Referenced by EvaFTPacket(), getBody(), parse(), and ~EvaFTPacket().

int EvaFTPacket::m_BufferLength [private]
 

Definition at line 72 of file evaftpacket.h.

Referenced by EvaFTPacket(), getBodyLength(), and parse().

bool EvaFTPacket::m_HasLength [protected]
 

Definition at line 65 of file evaftpacket.h.

Referenced by EvaFTAgentPacket::EvaFTAgentPacket(), EvaFTSynPacket::EvaFTSynPacket(), and fill().

bool EvaFTPacket::m_HasTags [protected]
 

Definition at line 64 of file evaftpacket.h.

Referenced by EvaFTAgentPacket::EvaFTAgentPacket(), fill(), parse(), and setPacketTag().

int EvaFTPacket::m_HeaderLength [protected]
 

Definition at line 63 of file evaftpacket.h.

Referenced by parse().

unsigned int EvaFTPacket::m_LengthOffset [protected]
 

Definition at line 66 of file evaftpacket.h.

Referenced by EvaFTAgentPacket::EvaFTAgentPacket(), EvaFTSynPacket::EvaFTSynPacket(), and fill().

unsigned char EvaFTPacket::m_Tag [private]
 

Definition at line 68 of file evaftpacket.h.

Referenced by fill(), getTag(), parse(), and setPacketTag().

unsigned char EvaFTPacket::m_Tail [private]
 

Definition at line 68 of file evaftpacket.h.

Referenced by fill(), getTail(), parse(), and setPacketTag().


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