diff options
author | nevans <nevans@140774ce-b5e7-0310-ab8b-a85725594a96> | 2010-04-30 14:50:31 +0000 |
---|---|---|
committer | nevans <nevans@140774ce-b5e7-0310-ab8b-a85725594a96> | 2010-04-30 14:50:31 +0000 |
commit | 9fe173cf34b6cb37e6ec47cde996cabf4647d1b7 (patch) | |
tree | cecb7fa6593ee66a8d7d2f377679553fc3e6c5e0 | |
parent | adfdb5217c2be0f99ea0eeaf138dc1763ad62972 (diff) |
message type changes, and dv message changes
git-svn-id: https://gnunet.org/svn/gnunet@11140 140774ce-b5e7-0310-ab8b-a85725594a96
-rw-r--r-- | src/include/gnunet_dv_service.h | 5 | ||||
-rw-r--r-- | src/include/gnunet_protocols.h | 17 |
2 files changed, 18 insertions, 4 deletions
diff --git a/src/include/gnunet_dv_service.h b/src/include/gnunet_dv_service.h index f7367cd80b..24646963ee 100644 --- a/src/include/gnunet_dv_service.h +++ b/src/include/gnunet_dv_service.h @@ -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); diff --git a/src/include/gnunet_protocols.h b/src/include/gnunet_protocols.h index dfa25fc296..501bf17ef7 100644 --- a/src/include/gnunet_protocols.h +++ b/src/include/gnunet_protocols.h @@ -239,20 +239,31 @@ 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 |