Beispiel #1
0
        // Internal Methods 

        /// <summary>
        /// A SNTPData that is used by a client to send to a server to request data.
        /// </summary>
        internal static SNTPData GetClientRequestPacket(VersionNumber versionNumber)
        {
            SNTPData packet = new SNTPData();

            packet.Mode             = Mode.Client;
            packet.VersionNumber    = versionNumber;
            packet.TransmitDateTime = DateTime.Now.ToUniversalTime();
            return(packet);
        }
Beispiel #2
0
		// Internal Methods 

        /// <summary>
        /// A SNTPData that is used by a client to send to a server to request data.
        /// </summary>
        internal static SNTPData GetClientRequestPacket(VersionNumber versionNumber)
        {
            SNTPData packet = new SNTPData();
            packet.Mode = Mode.Client;
            packet.VersionNumber = versionNumber;
            packet.TransmitDateTime = DateTime.Now.ToUniversalTime();
            return packet;
        }