#include <EmptyPacket.h>
Inheritance diagram for GNE::EmptyPacket:
Public Types | |
typedef SmartPtr< EmptyPacket > | sptr |
typedef WeakPtr< EmptyPacket > | wptr |
Public Member Functions | |
EmptyPacket () | |
Constructs an EmptyPacket. | |
Static Public Attributes | |
static const int | ID = 0 |
The ID for this type of packet. |
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.