22 #ifndef DHTNAMESERVICE_H_
23 #define DHTNAMESERVICE_H_
25 #define DHT_RESULTS_EXPIRE_TIMEOUT 600
26 #define DHT_PATH_EXPIRE_TIMEOUT 60
27 #define DHT_DISCOVERED_NODE_PRIORITY -10
39 #include <ibrcommon/thread/Mutex.h>
45 #include <dtndht/dtndht.h>
65 struct dtn_dht_context _context;
67 unsigned char _buf[4096];
69 int _interrupt_pipe[2];
77 ibrcommon::Mutex _libmutex;
81 std::list<dtn::data::EID> cachedLookups;
103 bool setNonBlockingInterruptPipe(
void);
108 std::string getConvergenceLayerName(
122 void bootstrapping();
127 void bootstrappingFile();
132 void bootstrappingDNS();
137 void bootstrappingIPs();
145 const std::string
getName()
const;
void raiseEvent(const dtn::routing::QueueBundleEvent &evt)
virtual ~DHTNameService()
const std::string getName() const
void onUpdateBeacon(const ibrcommon::vinterface &iface, DiscoveryBeacon &beacon)