- moved stream message types to gnunet_protocols.h
authorSree Harsha Totakura <totakura@in.tum.de>
Tue, 24 Jan 2012 23:06:32 +0000 (23:06 +0000)
committerSree Harsha Totakura <totakura@in.tum.de>
Tue, 24 Jan 2012 23:06:32 +0000 (23:06 +0000)
src/include/gnunet_protocols.h
src/stream/stream_protocol.h

index 323d0a0bf3120519012cfa9e8f3b8ff682b4963d..af4dd74b2fa235912fb8898811e0b77cc42b7a3b 100644 (file)
@@ -1153,15 +1153,70 @@ extern "C"
  */
 #define GNUNET_MESSAGE_TYPE_TRANSPORT_BROADCAST_BEACON 384
 
+/*******************************************************************************
+ * STREAM LIRBRARY MESSAGES
+ ******************************************************************************/
 
 /**
  * Message containing data exchanged between stream end-points over mesh.
  */
 #define GNUNET_MESSAGE_TYPE_STREAM_DATA 400
 
+/**
+ * ACK message
+ */
+#define GNUNET_MESSAGE_TYPE_STREAM_ACK 401
+
+/**
+ * Handshake hello message
+ */
+#define GNUNET_MESSAGE_TYPE_STREAM_HELLO 402
+
+/**
+ * Handshake hello acknowledgement message
+ */
+#define GNUNET_MESSAGE_TYPE_STREAM_HELLO_ACK 403
+
+/**
+ * Reset message
+ */
+#define GNUNET_MESSAGE_TYPE_STREAM_RESET 404
+
+/**
+ * Transmit close message (data transmission no longer possible after this
+ * message) 
+ */
+#define GNUNET_MESSAGE_TYPE_STREAM_TRANSMIT_CLOSE 405
+
+/**
+ * Transmit close acknowledgement message
+ */
+#define GNUNET_MESSAGE_TYPE_STREAM_TRANSMIT_CLOSE_ACK 406
+
+/**
+ * Receive close message (data is no loger read by the receiver after this
+ * message) 
+ */
+#define GNUNET_MESSAGE_TYPE_STREAM_RECEIVE_CLOSE 407
+
+/**
+ * Receive close acknowledgement message
+ */
+#define GNUNET_MESSAGE_TYPE_STREAM_RECEIVE_CLOSE_ACK 408
+
+/**
+ * Stream close message (data is no longer sent or read after this message)
+ */
+#define GNUNET_MESSAGE_TYPE_STREAM_CLOSE 409
+
+/**
+ * Close acknowledgement message
+ */
+#define GNUNET_MESSAGE_TYPE_STREAM_CLOSE_ACK 410
+
 
 /**
- *  Next available: 416
+ *  Next available: 420
  */
 
 
index f4ad37fdd7c4c86367d15c2d5cc976664e6106dd..3f6155eb1da337672f9d4cecf1b3cde7d28a52ef 100644 (file)
@@ -38,70 +38,6 @@ extern "C"
 #include "gnunet_util_lib.h"
 
 
-/**
- * Stream message types
- */
-enum GNUNET_STREAM_MessageType
-  {
-    /**
-     * Message containing data
-     */
-    GNUNET_STREAM_MESSAGE_DATA,
-
-    /**
-     * ACK message
-     */
-    GNUNET_STREAM_MESSAGE_ACK,
-
-    /**
-     * Handshake hello message
-     */
-    GNUNET_STREAM_MESSAGE_HELLO,
-
-    /**
-     * Handshake hello acknowledgement message
-     */
-    GNUNET_STREAM_MESSAGE_HELLO_ACK,
-
-    /**
-     * Reset message
-     */
-    GNUNET_STREAM_MESSAGE_RESET,
-
-    /**
-     * Transmit close message (data transmission no longer possible after this
-     * message) 
-     */
-    GNUNET_STREAM_MESSAGE_TRANSMIT_CLOSE,
-
-    /**
-     * Transmit close acknowledgement message
-     */
-    GNUNET_STREAM_MESSAGE_TRANSMIT_CLOSE_ACK,
-    
-    /**
-     * Receive close message (data is no loger read by the receiver after this
-     * message) 
-     */
-    GNUNET_STREAM_MESSAGE_RECEIVE_CLOSE,
-
-    /**
-     * Receive close acknowledgement message
-     */
-    GNUNET_STREAM_MESSAGE_RECEIVE_CLOSE_ACK,
-
-    /**
-     * Stream close message (data is no longer sent or read after this message)
-     */
-    GNUNET_STREAM_MESSAGE_CLOSE,
-
-    /**
-     * Close acknowledgement message
-     */
-    GNUNET_STREAM_MESSAGE_CLOSE_ACK
-  };
-
-
 /**
  * The stream message header
  *