- use enum, add out of order option
authorBart Polot <bart@net.in.tum.de>
Sat, 13 Jul 2013 09:10:10 +0000 (09:10 +0000)
committerBart Polot <bart@net.in.tum.de>
Sat, 13 Jul 2013 09:10:10 +0000 (09:10 +0000)
src/mesh/mesh.h

index 803bf903320230eb727dc1fe318ce16993efaad0..44601754a65f8aa52e4304b3170f6f724d823350 100644 (file)
@@ -91,8 +91,24 @@ extern "C"
 /**
  * Value in tunnel info: *int (GNUNET_YES/GNUNET_NO)
  */
-#define GNUNET_MESH_OPTION_NOBUFFER             0x1
-#define GNUNET_MESH_OPTION_RELIABLE             0x2
+typedef enum
+{
+  /**
+   * Disable buffering on intermediate nodes (for minimum latency).
+   */
+  GNUNET_MESH_OPTION_NOBUFFER   = 0x1,
+
+  /**
+   * Enable tunnel reliability, lost messages will be retransmitted.
+   */
+  GNUNET_MESH_OPTION_RELIABLE   = 0x2,
+
+  /**
+   * Enable out of order delivery of messages.
+   */
+  GNUNET_MESH_OPTION_OOORDER    = 0x4
+
+} MeshTunnelOption;
 
 #define PID_OVERFLOW(pid, max) (pid > HIGH_PID && max < LOW_PID)