[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r35565 - gnunet/src/dht
From: |
gnunet |
Subject: |
[GNUnet-SVN] r35565 - gnunet/src/dht |
Date: |
Mon, 27 Apr 2015 15:10:22 +0200 |
Author: arthur
Date: 2015-04-27 15:10:22 +0200 (Mon, 27 Apr 2015)
New Revision: 35565
Modified:
gnunet/src/dht/gnunet-service-wdht_neighbours.c
Log:
Adding some function in the handler
Modified: gnunet/src/dht/gnunet-service-wdht_neighbours.c
===================================================================
--- gnunet/src/dht/gnunet-service-wdht_neighbours.c 2015-04-27 13:06:38 UTC
(rev 35564)
+++ gnunet/src/dht/gnunet-service-wdht_neighbours.c 2015-04-27 13:10:22 UTC
(rev 35565)
@@ -610,9 +610,89 @@
return GNUNET_OK;
}
+/**
+ * Handle a `struct FingerSetupResponseMessage`.
+ *
+ * @param cls closure (NULL)
+ * @param peer sender identity
+ * @param message the setup response message
+ * @return #GNUNET_OK on success, #GNUNET_SYSERR on error
+ */
+static int
+handle_dht_p2p_finger_setup_response (void *cls,
+ const struct GNUNET_PeerIdentity *peer,
+ const struct GNUNET_MessageHeader *message)
+{
+ const struct FingerSetupResponseMessage *fsrm;
+ fsm = (const struct *) message;
+ return GNUNET_OK;
+}
+
+
/**
+ * Handle a `struct FingerDestroyMessage`.
+ *
+ * @param cls closure (NULL)
+ * @param peer sender identity
+ * @param message the finger destroy message
+ * @return #GNUNET_OK on success, #GNUNET_SYSERR on error
+ */
+static int
+handle_dht_p2p_finger_destroy (void *cls,
+ const struct GNUNET_PeerIdentity *peer,
+ const struct GNUNET_MessageHeader *message)
+{
+ const struct FingerDestroyMessage *fdm;
+
+ fsm = (const struct *) message;
+
+ return GNUNET_OK;
+}
+
+/**
+ * Handle a `struct FingerRouteMessage`.
+ *
+ * @param cls closure (NULL)
+ * @param peer sender identity
+ * @param message the finger route message
+ * @return #GNUNET_OK on success, #GNUNET_SYSERR on error
+ */
+static int
+handle_dht_p2p_finger_route (void *cls,
+ const struct GNUNET_PeerIdentity *peer,
+ const struct GNUNET_MessageHeader *message)
+{
+ const struct FingerRouteMessage *frm;
+
+ fsm = (const struct *) message;
+ /* FIXME: check the size of the message */
+
+ return GNUNET_OK;
+}
+
+/**
+ * Handle a `struct FingerRouteMessage`.
+ *
+ * @param cls closure (NULL)
+ * @param peer sender identity
+ * @param message the finger route message
+ * @return #GNUNET_OK on success, #GNUNET_SYSERR on error
+ */
+static int
+handle_dht_p2p_neighbour_find (void *cls,
+ const struct GNUNET_PeerIdentity *peer,
+ const struct GNUNET_MessageHeader *message)
+{
+ const struct FingerSetupMessage *fsm;
+
+ fsm = (const struct *) message;
+
+ return GNUNET_OK;
+}
+
+/**
* Initialize neighbours subsystem.
* @return #GNUNET_OK on success, #GNUNET_SYSERR on error
*/
@@ -623,6 +703,21 @@
{ &handle_dht_p2p_finger_setup,
GNUNET_MESSAGE_TYPE_WDHT_FINGER_SETUP,
sizeof (struct FingerSetupMessage) },
+ { &handle_dht_p2p_finger_setup_response,
+ GNUNET_MESSAGE_TYPE_WDHT_FINGER_SETUP_RESPONSE,
+ sizeof (struct FingerSetupResponseMessage) },
+ { &handle_dht_p2p_finger_destroy,
+ GNUNET_MESSAGE_TYPE_WDHT_FINGER_DESTROY,
+ sizeof (struct FingerDestroyMessage) },
+ { &handle_dht_p2p_finger_route,
+ GNUNET_MESSAGE_TYPE_WDHT_FINGER_ROUTE,
+ 0},
+ { &handle_dht_p2p_neighbour_find,
+ GNUNET_MESSAGE_TYPE_WDHT_NEIGHBOUR_FIND,
+ sizeof (struct FingerSetupMessage) },
+ { &handle_dht_p2p_neighbour_find,
+ GNUNET_MESSAGE_TYPE_WDHT_NEIGHBOUR_FOUND,
+ sizeof (struct FingerSetupMessage) },
{NULL, 0, 0}
};
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r35565 - gnunet/src/dht,
gnunet <=