Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

FinPacket Class Reference

This packet contains, in the following order: NpPacket header Error Code: 1 byte. More...

#include <FinPacket.h>

Inheritance diagram for FinPacket::

NpPacket Packet BasicObject List of all members.

Public Methods

 FinPacket ()
 Used to create a FIN packet from scratch. More...

virtual ~FinPacket ()
 FinPacket (unsigned char *rawData)
 Used to decode a FIN packet when we receive it. More...

unsigned short getErrorCode ()
void setErrorCode (unsigned short code)
virtual unsigned char * getRawData ()
 Encodes a packet right before it is sent over the wire. More...

virtual void toStream (std::ostream &)
 Gets the length of the whole packet and makes sure the length makes sense. More...


Private Attributes

unsigned short m_errorCode

Detailed Description

This packet contains, in the following order: NpPacket header Error Code: 1 byte.

Definition at line 6 of file FinPacket.h.


Constructor & Destructor Documentation

FinPacket::FinPacket
 

Used to create a FIN packet from scratch.

Definition at line 13 of file FinPacket.cpp.

virtual FinPacket::~FinPacket [inline, virtual]
 

Definition at line 14 of file FinPacket.h.

FinPacket::FinPacket unsigned char * rawData
 

Used to decode a FIN packet when we receive it.

Definition at line 24 of file FinPacket.cpp.


Member Function Documentation

unsigned short FinPacket::getErrorCode
 

Definition at line 48 of file FinPacket.cpp.

Referenced by ServiceTable::signalDisconnect().

unsigned char * FinPacket::getRawData [virtual]
 

Encodes a packet right before it is sent over the wire.

Reimplemented from NpPacket.

Definition at line 34 of file FinPacket.cpp.

void FinPacket::setErrorCode unsigned short code
 

Definition at line 54 of file FinPacket.cpp.

void FinPacket::toStream std::ostream & out [virtual]
 

Gets the length of the whole packet and makes sure the length makes sense.

Returns:
< 0 if the length is invalid

Reimplemented from NpPacket.

Definition at line 60 of file FinPacket.cpp.


Member Data Documentation

unsigned short FinPacket::m_errorCode [private]
 

Definition at line 26 of file FinPacket.h.


The documentation for this class was generated from the following files:
Generated at Thu Jul 11 13:31:56 2002 for Peekabooty by doxygen1.2.9 written by Dimitri van Heesch, © 1997-2001