From 077f5b61a4d6296d1fe5b00895d3a67a760444b7 Mon Sep 17 00:00:00 2001 From: stmax Date: Tue, 23 Jan 2018 23:26:42 +0100 Subject: [PATCH] Comments of OriginTimestamp and TransmitTimestamp --- GuerrillaNtp/NtpPacket.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/GuerrillaNtp/NtpPacket.cs b/GuerrillaNtp/NtpPacket.cs index 0aae3f5..d8dc410 100644 --- a/GuerrillaNtp/NtpPacket.cs +++ b/GuerrillaNtp/NtpPacket.cs @@ -78,7 +78,9 @@ public NtpMode Mode public DateTime? ReferenceTimestamp { get { return GetDateTime64(16); } set { SetDateTime64(16, value); } } /// - /// Gets the date and time this packet left the client + /// When creating a response, the server copies the TransmitTimestamp of the request to the OriginTimestamp of the response. + /// + /// Not used / null in request packets /// public DateTime? OriginTimestamp { get { return GetDateTime64(24); } set { SetDateTime64(24, value); } } @@ -88,7 +90,7 @@ public NtpMode Mode public DateTime? ReceiveTimestamp { get { return GetDateTime64(32); } set { SetDateTime64(32, value); } } /// - /// Gets the date and time that the packet was transmitted from the server + /// Gets the date and time that the packet was transmitted from the client (in request packets) or from the server (in response packets) /// public DateTime? TransmitTimestamp { get { return GetDateTime64(40); } set { SetDateTime64(40, value); } }