/// <summary> /// Create a new reset message for the specified message. /// </summary> /// <param name="message">the message to reject</param> /// <returns>the reset</returns> public static EmptyMessage NewRST(Message message) { EmptyMessage rst = new EmptyMessage(MessageType.RST); rst.ID = message.ID; rst.Token = CoapConstants.EmptyToken; rst.Destination = message.Source; return rst; }
/// <summary> /// Create a new acknowledgment for the specified message. /// </summary> /// <param name="message">the message to acknowledge</param> /// <returns>the acknowledgment</returns> public static EmptyMessage NewACK(Message message) { EmptyMessage ack = new EmptyMessage(MessageType.ACK); ack.ID = message.ID; ack.Token = CoapConstants.EmptyToken; ack.Destination = message.Source; return ack; }
/// <summary> /// Create a new reset message for the specified message. /// </summary> /// <param name="message">the message to reject</param> /// <returns>the reset</returns> public static EmptyMessage NewRST(Message message) { EmptyMessage rst = new EmptyMessage(MessageType.RST); rst.ID = message.ID; rst.Token = CoapConstants.EmptyToken; rst.Destination = message.Source; return(rst); }
/// <summary> /// Create a new acknowledgment for the specified message. /// </summary> /// <param name="message">the message to acknowledge</param> /// <returns>the acknowledgment</returns> public static EmptyMessage NewACK(Message message) { EmptyMessage ack = new EmptyMessage(MessageType.ACK); ack.ID = message.ID; ack.Token = CoapConstants.EmptyToken; ack.Destination = message.Source; return(ack); }