Click or drag to resize
SimpleNetworkTime Class
Class for performing SNTP queries.
Inheritance Hierarchy
SystemObject
  com.softwarekey.Client.UtilsSimpleNetworkTime

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

The SimpleNetworkTime type exposes the following members.

Constructors
  NameDescription
Public methodSimpleNetworkTime
Initializes a new instance of the SimpleNetworkTime class
Top
Properties
  NameDescription
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.
Top
Methods
  NameDescription
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetNetworkTime
Gets the current time from an NTP server.
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a String that represents the current Object.
(Inherited from Object.)
Top
Remarks
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