From a4c9524076c56b21b5985f3b6b78b60db799287e Mon Sep 17 00:00:00 2001 From: Sree Harsha Totakura Date: Tue, 21 Feb 2012 17:28:55 +0000 Subject: -added data message handling --- src/stream/stream_protocol.h | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) (limited to 'src/stream/stream_protocol.h') diff --git a/src/stream/stream_protocol.h b/src/stream/stream_protocol.h index 1b3a6838a..baaec2a4f 100644 --- a/src/stream/stream_protocol.h +++ b/src/stream/stream_protocol.h @@ -136,6 +136,9 @@ struct GNUNET_STREAM_AckMessage }; +/** + * Message for Acknowledging HELLO + */ struct GNUNET_STREAM_HelloAckMessage { /** @@ -151,10 +154,30 @@ struct GNUNET_STREAM_HelloAckMessage /** * The size(in bytes) of the receive window on the peer sending this message + * + * FIXME: Remove if not needed */ uint32_t receive_window_size; }; + +/** + * The Transmit close message(used to signal transmission is closed) + */ +struct GNUNET_STREAM_TransmitCloseMessage +{ + /** + * The stream message header + */ + struct GNUNET_STREAM_MessageHeader header; + + /** + * The last sequence number of the packet after which the transmission has + * ended + */ + uint32_t final_sequence_number GNUNET_PACKED; +}; + GNUNET_NETWORK_STRUCT_END -- cgit v1.2.3