GNE  0.75.0
GNE::ExitPacket Class Reference

The ExitPacket is sent automatically by GNE when you disconnect in a proper manner. More...

#include <ExitPacket.h>

Inheritance diagram for GNE::ExitPacket:
GNE::Packet

Public Types

typedef SmartPtr< ExitPacketsptr
typedef WeakPtr< ExitPacketwptr
- Public Types inherited from GNE::Packet
typedef SmartPtr< Packetsptr
typedef WeakPtr< Packetwptr

Public Member Functions

virtual int getSize () const
 Returns the current size of this packet in bytes.
virtual void writePacket (Buffer &raw) const
 Writes the packet to the given Buffer.
virtual void readPacket (Buffer &raw)
 Reads this packet from the given Buffer.
- Public Member Functions inherited from GNE::Packet
PacketmakeClone () const
 Returns a newly allocated exact copy of this packet, using the PacketParser::clonePacket function.
int getType () const
 Returns the type of this instance.

Static Public Attributes

static const int ID = 2
 The ID for this type of packet.

Additional Inherited Members

- Protected Member Functions inherited from GNE::Packet
 Packet (int id)
 Constructs a packet with the given ID.
 Packet (const Packet &o)
 Copy constructor.
Packetoperator= (const Packet &rhs)
 Copy operator you can use to help you in creating your own.

Detailed Description

The ExitPacket is sent automatically by GNE when you disconnect in a proper manner.

You need not use this class. When you receive an ExitPacket, though, a graceful disconnect is initiated that generates an onExit event.


The documentation for this class was generated from the following files: