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.17.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 (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.)
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).

See Also