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

DiscoveryPacket.h

Go to the documentation of this file.
00001 #ifndef __DISCOVERYPACKET_H
00002 #define __DISCOVERYPACKET_H
00003 
00004 #include "NpPacket.h"
00005 #include "randomc.h"
00006 
00007 class DiscoveryPacket : public NpPacket {
00008 public:
00009     OS_SPEC_ENUM Offsets {
00010         IdOffset  = NP_HEADER_LENGTH
00011     };
00012 
00013         DiscoveryPacket();
00014     virtual ~DiscoveryPacket() {}
00015         DiscoveryPacket(unsigned char* rawData);
00016         unsigned int getId();
00017         void setId(unsigned int id);
00018         virtual unsigned char* getRawData();
00019     virtual void toStream(std::ostream&);
00020 
00021 private:
00022         unsigned int m_id;
00023     TRanrotBGenerator m_randomNumberGenerator;
00024 }; // class DiscoveryPacket
00025 
00026 #endif
00027 

Generated at Thu Jul 11 13:31:50 2002 for Peekabooty by doxygen1.2.9 written by Dimitri van Heesch, © 1997-2001