- oops forgot includes
authorBart Polot <bart@net.in.tum.de>
Fri, 20 Jul 2012 16:57:42 +0000 (16:57 +0000)
committerBart Polot <bart@net.in.tum.de>
Fri, 20 Jul 2012 16:57:42 +0000 (16:57 +0000)
src/include/gnunet_mesh_service.h
src/include/gnunet_protocols.h

index e1cd030052ab4bdbb53352932ff288c96c7dbfd9..c235bdd4228bc1d1b9d172b30b51b62f9a2521d4 100644 (file)
@@ -285,6 +285,17 @@ void
 GNUNET_MESH_tunnel_speed_max (struct GNUNET_MESH_Tunnel *tunnel);
 
 
+/**
+ * Turn on/off the buffering status of the tunnel.
+ * 
+ * @param tunnel Tunnel affected.
+ * @param buffer GNUNET_YES to turn buffering on (default),
+ *               GNUNET_NO otherwise.
+ */
+void
+GNUNET_MESH_tunnel_buffer (struct GNUNET_MESH_Tunnel *tunnel, int buffer);
+
+
 /**
  * Request that a peer should be added to the tunnel.  The connect handler
  * will be called when the peer connects
index 652630bcc1beed2a4b63a1c7db288095fd92b2fe..dc29a4d02319f98045ac2b0fb3cf67be9f1b65af 100644 (file)
@@ -791,9 +791,29 @@ extern "C"
 #define GNUNET_MESSAGE_TYPE_MESH_TUNNEL_DESTROY         266
 
 /**
- * We need flow control
+ * Set tunnel speed to slowest peer
+ */
+#define GNUNET_MESSAGE_TYPE_MESH_TUNNEL_MIN             267
+
+/**
+ * Set tunnel speed to fastest peer
+ */
+#define GNUNET_MESSAGE_TYPE_MESH_TUNNEL_MAX             268
+
+/**
+ * Set tunnel buffering on.
+ */
+#define GNUNET_MESSAGE_TYPE_MESH_TUNNEL_BUFFER          269
+
+/**
+ * Set tunnel buffering off.
  */
-#define GNUNET_MESSAGE_TYPE_MESH_SPEED_NOTIFY           270
+#define GNUNET_MESSAGE_TYPE_MESH_TUNNEL_NOBUFFER        270
+
+/**
+ * ACK for a data packet.
+ */
+#define GNUNET_MESSAGE_TYPE_MESH_ACK                    271
 
 /**
  * Connect to the mesh service, specifying subscriptions
@@ -855,6 +875,16 @@ extern "C"
  */
 #define GNUNET_MESSAGE_TYPE_MESH_LOCAL_TUNNEL_MAX   283
 
+/**
+ * Set tunnel buffering on.
+ */
+#define GNUNET_MESSAGE_TYPE_MESH_LOCAL_TUNNEL_BUFFER   284
+
+/**
+ * Set tunnel buffering off.
+ */
+#define GNUNET_MESSAGE_TYPE_MESH_LOCAL_TUNNEL_NOBUFFER   285
+
 /**
  * 640kb should be enough for everybody
  */