From: Sree Harsha Totakura Date: Tue, 17 Jan 2012 20:14:38 +0000 (+0000) Subject: - protocol states X-Git-Tag: initial-import-from-subversion-38251~15245 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=0e9f40d2a5470c648f26effdb155a392a4b4be1b;p=oweals%2Fgnunet.git - protocol states --- 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 }