- protocol states
authorSree Harsha Totakura <totakura@in.tum.de>
Tue, 17 Jan 2012 20:14:38 +0000 (20:14 +0000)
committerSree Harsha Totakura <totakura@in.tum.de>
Tue, 17 Jan 2012 20:14:38 +0000 (20:14 +0000)
src/stream/stream_protocol.h

index 7116271058724bf2795bd0d04db78419c70ec6bd..0624323d9455e3846782630bf78e6d4f3f504aaa 100644 (file)
@@ -186,24 +186,29 @@ struct GNUNET_STREAM_AckMessage
 
 
 /**
- * Various states in the Protocol
+ * states in the Protocol
  */
-enum GNUNET_STREAM_ProtocolState
+enum GNUNET_STREAM_State
   {
-    GNUNET_STREAM_PROTOCOL_INIT,
+    GNUNET_STREAM_STATE_INIT,
 
-    GNUNET_STREAM_PROTOCOL_LISTEN,
+    GNUNET_STREAM_STATE_LISTEN,
 
-    GNUNET_STREAM_PROTOCOL_HANDSHAKE_WAIT,
+    GNUNET_STREAM_STATE_HANDSHAKE_WAIT,
 
-    GNUNET_STREAM_PROTOCOL_DATA_WAIT,
+    GNUNET_STREAM_STATE_ESTABLISHED,
 
-    GNUNET_STREAM_PROTOCOL_READ_CLOSE_WAIT,
+    GNUNET_STREAM_STATE_RECEIVE_CLOSE_WAIT,
 
-    GNUNET_STREAM_PROTOCOL_WRITE_CLOSE_WAIT,
+    GNUNET_STREAM_STATE_RECEIVE_CLOSED,
 
-    GNUNET_STREAM_PROTOCOL_CLOSE_WAIT
-    
+    GNUNET_STREAM_STATE_TRANSMIT_CLOSE_WAIT,
+
+    GNUNET_STREAM_STATE_TRANSMIT_CLOSED,
+
+    GNUNET_STREAM_STATE_CLOSE_WAIT,
+
+    GNUNET_STREAM_STATE_CLOSED 
   }