GNE::EmptyPacket Class Reference

The EmptyPacket is a packet that has no information. More...

#include <EmptyPacket.h>

Inheritance diagram for GNE::EmptyPacket:

Inheritance graph
[legend]
Collaboration diagram for GNE::EmptyPacket:

Collaboration graph
[legend]
List of all members.

Public Types

typedef SmartPtr< EmptyPacketsptr
typedef WeakPtr< EmptyPacketwptr

Public Member Functions

 EmptyPacket ()
 Constructs an EmptyPacket.

Static Public Attributes

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

Detailed Description

The EmptyPacket is a packet that has no information.

This packet type is a replacement for when Packet with a default constructor was used. Normally sending blank packets are not useful; however, there are a few purposes for them, such as a "keep alive" packet to keep a connection alive. If you are wanting to use a blank packet for some purpose such as a end-of-data marker or sending some message that requires no data, it is suggested that you simply derive a class from Packet that adds no data, but has a unique ID so it can be "recognized" easier.


The documentation for this class was generated from the following files:
Generated on Tue Sep 5 23:47:47 2006 for GNE by  doxygen 1.4.7