aboutsummaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2018-04-30 11:31:22 +0200
committerChristian Grothoff <christian@grothoff.org>2018-04-30 11:31:22 +0200
commitccf723196e9ff7f31a56a8e8ebd8319d07fa17c8 (patch)
tree0ccec2bc54f5f80f35054dda5a1cfe8202ab522f /src/include
parent82c1ee4d147f28e919d82f87fcd787e719d7e572 (diff)
downloadgnunet-ccf723196e9ff7f31a56a8e8ebd8319d07fa17c8.tar.gz
gnunet-ccf723196e9ff7f31a56a8e8ebd8319d07fa17c8.zip
eliminate DHT PUT OK message by using MQ feature of calling continuation when transmission is complete
Diffstat (limited to 'src/include')
-rw-r--r--src/include/gnunet_dht_service.h18
-rw-r--r--src/include/gnunet_protocols.h5
2 files changed, 1 insertions, 22 deletions
diff --git a/src/include/gnunet_dht_service.h b/src/include/gnunet_dht_service.h
index d798482e3..a4c63889e 100644
--- a/src/include/gnunet_dht_service.h
+++ b/src/include/gnunet_dht_service.h
@@ -142,22 +142,6 @@ struct GNUNET_DHT_PutHandle;
142 142
143 143
144/** 144/**
145 * Type of a PUT continuation. You must not call
146 * #GNUNET_DHT_disconnect in this continuation.
147 *
148 * @param cls closure
149 * @param success #GNUNET_OK if the PUT was transmitted,
150 * #GNUNET_NO on timeout,
151 * #GNUNET_SYSERR on disconnect from service
152 * after the PUT message was transmitted
153 * (so we don't know if it was received or not)
154 */
155typedef void
156(*GNUNET_DHT_PutContinuation)(void *cls,
157 int success);
158
159
160/**
161 * Perform a PUT operation storing data in the DHT. 145 * Perform a PUT operation storing data in the DHT.
162 * 146 *
163 * @param handle handle to DHT service 147 * @param handle handle to DHT service
@@ -184,7 +168,7 @@ GNUNET_DHT_put (struct GNUNET_DHT_Handle *handle,
184 size_t size, 168 size_t size,
185 const void *data, 169 const void *data,
186 struct GNUNET_TIME_Absolute exp, 170 struct GNUNET_TIME_Absolute exp,
187 GNUNET_DHT_PutContinuation cont, 171 GNUNET_SCHEDULER_TaskCallback cont,
188 void *cont_cls); 172 void *cont_cls);
189 173
190 174
diff --git a/src/include/gnunet_protocols.h b/src/include/gnunet_protocols.h
index d692b28ff..bf1b48679 100644
--- a/src/include/gnunet_protocols.h
+++ b/src/include/gnunet_protocols.h
@@ -624,11 +624,6 @@ extern "C"
624#define GNUNET_MESSAGE_TYPE_DHT_MONITOR_STOP 154 624#define GNUNET_MESSAGE_TYPE_DHT_MONITOR_STOP 154
625 625
626/** 626/**
627 * Acknowledge receiving PUT request
628 */
629#define GNUNET_MESSAGE_TYPE_DHT_CLIENT_PUT_OK 155
630
631/**
632 * Certain results are already known to the client, filter those. 627 * Certain results are already known to the client, filter those.
633 */ 628 */
634#define GNUNET_MESSAGE_TYPE_DHT_CLIENT_GET_RESULTS_KNOWN 156 629#define GNUNET_MESSAGE_TYPE_DHT_CLIENT_GET_RESULTS_KNOWN 156