message type changes, and dv message changes
authorNathan S. Evans <evans@in.tum.de>
Fri, 30 Apr 2010 14:50:31 +0000 (14:50 +0000)
committerNathan S. Evans <evans@in.tum.de>
Fri, 30 Apr 2010 14:50:31 +0000 (14:50 +0000)
src/include/gnunet_dv_service.h
src/include/gnunet_protocols.h

index f7367cd80be870b1938dabbd045a245d84c9d98b..24646963ee2d1f9528582a52e16a8c392a128fe5 100644 (file)
@@ -40,6 +40,7 @@ extern "C"
 #include "gnunet_common.h"
 #include "gnunet_configuration_lib.h"
 #include "gnunet_scheduler_lib.h"
+#include "../transport/plugin_transport.h"
 
 /**
  * Version of the dv API.
@@ -59,7 +60,9 @@ int GNUNET_DV_send (struct GNUNET_DV_Handle *dv_handle,
                     unsigned int priority,
                     struct GNUNET_TIME_Relative timeout,
                     const void *addr,
-                    size_t addrlen);
+                    size_t addrlen,
+                    GNUNET_TRANSPORT_TransmitContinuation
+                    cont, void *cont_cls);
 
 
 
index dfa25fc2963b4b11455d30cfa68e58c9b9e4e954..501bf17ef7e8118d9175fc57a92952e889b7cb5c 100644 (file)
@@ -238,21 +238,32 @@ extern "C"
  */
 #define GNUNET_MESSAGE_TYPE_TRANSPORT_DV_SEND 45
 
+/**
+ * DV service to DV api message, containing a confirmation
+ * or failure of a DV_SEND message.
+ */
+#define GNUNET_MESSAGE_TYPE_TRANSPORT_DV_SEND_RESULT 46
+
 /**
  * P2P DV message encapsulating some real message
  */
-#define GNUNET_MESSAGE_TYPE_DV_DATA 46
+#define GNUNET_MESSAGE_TYPE_DV_DATA 47
 
 /**
  * P2P DV message gossipping peer information
  */
-#define GNUNET_MESSAGE_TYPE_DV_GOSSIP 47
+#define GNUNET_MESSAGE_TYPE_DV_GOSSIP 48
 
 /**
  * DV Plugin to DV service message, indicating
  * startup.
  */
-#define GNUNET_MESSAGE_TYPE_DV_START 48
+#define GNUNET_MESSAGE_TYPE_DV_START 49
+
+/**
+ * P2P DV message notifying connected peers of a disconnect
+ */
+#define GNUNET_MESSAGE_TYPE_DV_DISCONNECT 50
 
 /**
  * UDP NAT probe message, send from NAT'd peer to