00001 #ifndef DISCOVERBLOCK_H_ 00002 #define DISCOVERBLOCK_H_ 00003 00004 #include "data/Block.h" 00005 #include "data/BlockFlags.h" 00006 #include "data/Exceptions.h" 00007 00008 using namespace dtn::data; 00009 00010 namespace emma 00011 { 00017 class DiscoverBlock : public Block 00018 { 00019 public: 00020 static const unsigned char BLOCK_TYPE = 200; 00021 00025 DiscoverBlock(NetworkFrame *frame); 00026 DiscoverBlock(Block *block); 00027 00031 virtual ~DiscoverBlock(); 00032 00033 string getConnectionAddress(); 00034 void setConnectionAddress(string address); 00035 00036 unsigned int getConnectionPort(); 00037 void setConnectionPort(unsigned int port); 00038 00039 unsigned int getOptionals(); 00040 00041 void setLatitude(double value); 00042 double getLatitude(); 00043 void setLongitude(double value); 00044 double getLongitude(); 00045 }; 00046 } 00047 00048 #endif /*DISCOVERBLOCK_H_*/
1.5.6