Click or drag to resize
SimpleNetworkTime Class
Class for performing SNTP queries.
Inheritance Hierarchy

Namespace: com.softwarekey.Client.Utils
Assembly: PLUSManaged (in PLUSManaged.dll) Version:
public class SimpleNetworkTime

The SimpleNetworkTime type exposes the following members.

Public methodSimpleNetworkTime
Initializes a new instance of the SimpleNetworkTime class
Public propertyHost
Gets or sets the NTP host address.
Public propertyPort
Gets or sets the NTP host port.
Public propertyReceiveTimeout
Gets or sets the time (in milliseconds) until a synchronous attempt to receive data times out.
Public propertySendTimeout
Gets or sets the time (in milliseconds) until a synchronous attempt to send data times out.
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetNetworkTime
Gets the current time from an NTP server.
Public methodGetType (Inherited from Object.)
Protected methodMemberwiseClone (Inherited from Object.)
Public methodToString (Inherited from Object.)
Caution note Caution

This allows you to verify a system's time has not be altered by comparing it to the time on a specified Internet time server. Sometimes, the availability of time servers may be somewhat unreliable (which is why this class allows you to specify multiple servers as fallbacks), and it is common for SNTP requests to be blocked by firewalls and proxy servers.

Additionally, although it is technically possible to perform SNTP requests against public NTP servers in your application, we strongly recommend you get approval from the time server's administrators/owners first (as this could cause unexpected load on their time servers, which could cause problems for you and everyone else who might rely on them).

Caution note Caution

The SimpleNetworkTime class is not available in the .NET Standard PLUSManaged assembly.

See Also