/// <summary> /// Constructor: Deserialises the information and recreates the instance. /// </summary> /// <param name="info">Standard <c>SerializationInfo</c> object</param> /// <param name="ctxt">Standard <c>StreamingContext</c> object</param> public NakAckHeader(SerializationInfo info, StreamingContext ctxt) { type = info.GetInt32("type"); seqno = info.GetInt64("seqno"); range = (Range)info.GetValue("range", typeof(object)); }
/// <summary> /// Constructor: Used for retransmit requests/responses /// </summary> /// <param name="type">Header type (i.e. XMIT_REQ/XMIT_RSP)</param> /// <param name="low">Lowest message needing retransmission</param> /// <param name="high">Highest message needing retransmission</param> public NakAckHeader(int type, long low, long high) { this.type=type; range=new Range(low, high); }