aboutsummaryrefslogtreecommitdiff
path: root/src/dht/dht.h
diff options
context:
space:
mode:
authorNathan S. Evans <evans@in.tum.de>2010-03-18 16:32:41 +0000
committerNathan S. Evans <evans@in.tum.de>2010-03-18 16:32:41 +0000
commite86fd05ff7bbef8aa1741671163564fb35beafb5 (patch)
tree7a7086978770221508be8d410d0318af490c0324 /src/dht/dht.h
parent197610adefaed55ac4eeb192b3ed075593835758 (diff)
downloadgnunet-e86fd05ff7bbef8aa1741671163564fb35beafb5.tar.gz
gnunet-e86fd05ff7bbef8aa1741671163564fb35beafb5.zip
getting dht closer to being this crazy meta dht thing
Diffstat (limited to 'src/dht/dht.h')
-rw-r--r--src/dht/dht.h42
1 files changed, 28 insertions, 14 deletions
diff --git a/src/dht/dht.h b/src/dht/dht.h
index 82b0df9a2..0cfd9b3bf 100644
--- a/src/dht/dht.h
+++ b/src/dht/dht.h
@@ -35,6 +35,24 @@ typedef void (*GNUNET_DHT_MessageReceivedHandler) (void *cls,
35/** 35/**
36 * Generic DHT message, wrapper for other message types 36 * Generic DHT message, wrapper for other message types
37 */ 37 */
38struct GNUNET_DHT_StopMessage
39{
40 /**
41 * Type: GNUNET_MESSAGE_TYPE_DHT_MESSAGE
42 */
43 struct GNUNET_MessageHeader header;
44
45 /**
46 * Unique ID identifying this request
47 */
48 uint64_t unique_id;
49
50};
51
52
53/**
54 * Generic DHT message, wrapper for other message types
55 */
38struct GNUNET_DHT_Message 56struct GNUNET_DHT_Message
39{ 57{
40 /** 58 /**
@@ -58,12 +76,18 @@ struct GNUNET_DHT_Message
58 uint16_t options; 76 uint16_t options;
59 77
60 /** 78 /**
61 * Is this message uniquely identified? If so it has 79 * Is this message uniquely identified? If so it will
62 * a unique_id appended to it. 80 * be fire and forget, if not we will wait for a receipt
81 * from the service.
63 */ 82 */
64 /* uint16_t unique; I don't think we need this, it should be held in the encapsulated message */ 83 uint16_t unique;
84
85
86 /**
87 * Unique ID identifying this request
88 */
89 uint64_t unique_id;
65 90
66 /* uint64_t unique_id*/
67 /* */ 91 /* */
68 /* GNUNET_MessageHeader *enc actual DHT message, copied to end of this dealy do */ 92 /* GNUNET_MessageHeader *enc actual DHT message, copied to end of this dealy do */
69 93
@@ -112,11 +136,6 @@ struct GNUNET_DHT_GetMessage
112 */ 136 */
113 size_t type; 137 size_t type;
114 138
115 /**
116 * The key to search for
117 */
118 GNUNET_HashCode key;
119
120}; 139};
121 140
122/** 141/**
@@ -156,11 +175,6 @@ struct GNUNET_DHT_FindPeerMessage
156 */ 175 */
157 struct GNUNET_MessageHeader header; 176 struct GNUNET_MessageHeader header;
158 177
159 /**
160 * The key being looked up
161 */
162 GNUNET_HashCode key;
163
164}; 178};
165 179
166/** 180/**