4 #define INIT_NUM_BLOCKS 16
18 unsigned int maxKeyCapacity;
19 struct hostData *next;
23 unsigned char msgType;
24 unsigned int unused:12;
30 unsigned char msgType;
31 unsigned int unused:12;
36 unsigned char msgType;
37 unsigned int unused:12;
42 unsigned char msgType;
43 unsigned int unused:12;
44 struct hostData newHost;
47 //called by host which joins (or starts) the system
49 //exit system, cleanup
52 //called by whoever performs the creation, move, deletion
53 int dhtInsert(unsigned int key, unsigned int val);
54 int dhtRemove(unsigned int key);
55 int dhtSearch(unsigned int key);