4 #define DHT_NO_KEY_LIMIT 0xFFFFFFFF
6 //called by host which joins (or starts) the system
7 void dhtInit(unsigned int maxKeyCapaciy);
11 //called by whoever performs the creation, move, deletion
13 //returns 0 if successful, -1 if an error occurred
14 int dhtInsert(unsigned int key, unsigned int val);
15 //returns 0 if successful, -1 if an error occurred
16 int dhtRemove(unsigned int key);
17 //returns 0 if successful and copies val into *val, 1 if key not found, -1 if an error occurred
18 int dhtSearch(unsigned int key, unsigned int *val);