[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r8254 - GNUnet/src/include
From: |
gnunet |
Subject: |
[GNUnet-SVN] r8254 - GNUnet/src/include |
Date: |
Mon, 16 Feb 2009 12:59:37 -0700 |
Author: nevans
Date: 2009-02-16 12:59:37 -0700 (Mon, 16 Feb 2009)
New Revision: 8254
Added:
GNUnet/src/include/gnunet_dv_lib.h
Modified:
GNUnet/src/include/dv.h
GNUnet/src/include/gnunet_protocols.h
Log:
Modified: GNUnet/src/include/dv.h
===================================================================
--- GNUnet/src/include/dv.h 2009-02-16 10:15:57 UTC (rev 8253)
+++ GNUnet/src/include/dv.h 2009-02-16 19:59:37 UTC (rev 8254)
@@ -21,8 +21,8 @@
/**
* @author Nathan Evans
* @file include/dv.h
- * @brief Structs necessary for the distance vector service providing
- * distance vector type routing.
+ * @brief Structs necessary for the dv service providing
+ * fisheye distance vector type routing.
*/
#ifndef DV_H
#define DV_H
@@ -47,12 +47,26 @@
unsigned int cost GNUNET_PACKED;
/**
- * Identity of neighbor of received from node
+ * Identity of neighbor we learned information about
*/
GNUNET_PeerIdentity neighbor GNUNET_PACKED;
} p2p_dv_MESSAGE_NeighborInfo;
+/**
+ * Message that gets sent between nodes carrying information
+ */
+typedef struct
+{
+ GNUNET_MessageHeader header GNUNET_PACKED;
+
+ /**
+ * Identity of neighbor this message is going to
+ */
+ GNUNET_PeerIdentity recipient GNUNET_PACKED;
+
+} p2p_dv_MESSAGE_Data;
+
/*
* Struct where actual neighbor information is stored,
* referenced by min_heap and max_heap. Freeing dealt
@@ -86,7 +100,6 @@
unsigned int cost;
};
-
#endif
/* end of dv.h */
Added: GNUnet/src/include/gnunet_dv_lib.h
===================================================================
--- GNUnet/src/include/gnunet_dv_lib.h (rev 0)
+++ GNUnet/src/include/gnunet_dv_lib.h 2009-02-16 19:59:37 UTC (rev 8254)
@@ -0,0 +1,44 @@
+/*
+ This file is part of GNUnet.
+ (C) 2008 Christian Grothoff (and other contributing authors)
+
+ GNUnet is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published
+ by the Free Software Foundation; either version 2, or (at your
+ option) any later version.
+
+ GNUnet is distributed in the hope that it will be useful, but
+ WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with GNUnet; see the file COPYING. If not, write to the
+ Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+ Boston, MA 02111-1307, USA.
+*/
+
+/**
+ * @author Nathan Evans
+ * @file include/gnunet_dv_lib.h
+ * @brief Provides access to applications wishing to use the fisheye
+ * distance vector routing algorithm.
+ */
+#ifndef GNUNET_DV_LIB_H
+#define GNUNET_DV_LIB_H
+
+#include "gnunet_core.h"
+
+/*
+ * Provides handler for sending a message via the dv module
+ *
+ * @recipient for which peer the message is intended
+ * @message the message being sent
+ */
+int GNUNET_DV_send_message (const GNUNET_PeerIdentity * recipient,
+ char *message);
+
+
+#endif
+
+/* end of gnunet_dv_lib.h */
Modified: GNUnet/src/include/gnunet_protocols.h
===================================================================
--- GNUnet/src/include/gnunet_protocols.h 2009-02-16 10:15:57 UTC (rev
8253)
+++ GNUnet/src/include/gnunet_protocols.h 2009-02-16 19:59:37 UTC (rev
8254)
@@ -411,10 +411,11 @@
/* ************* p2p Distance Vector Messages ************* */
#define GNUNET_P2P_PROTO_DV_NEIGHBOR_MESSAGE 75
+#define GNUNET_P2P_PROTO_DV_DATA_MESSAGE 76
/* ************* end p2p DV Messages ***************** */
-#define GNUNET_P2P_PROTO_MAX_USED 76
+#define GNUNET_P2P_PROTO_MAX_USED 77
/* ************** Block types (libecrs) ************************ */
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r8254 - GNUnet/src/include,
gnunet <=