From 0e9f40d2a5470c648f26effdb155a392a4b4be1b Mon Sep 17 00:00:00 2001 From: Sree Harsha Totakura Date: Tue, 17 Jan 2012 20:14:38 +0000 Subject: [PATCH] - protocol states --- src/stream/stream_protocol.h | 25 +++++++++++++++---------- 1 file changed, 15 insertions(+), 10 deletions(-) diff --git a/src/stream/stream_protocol.h b/src/stream/stream_protocol.h index 711627105..0624323d9 100644 --- a/src/stream/stream_protocol.h +++ b/src/stream/stream_protocol.h @@ -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 } -- 2.25.1