SimpleNetworkTime Class |
Namespace: com.softwarekey.Client.Utils
The SimpleNetworkTime type exposes the following members.
Name | Description | |
---|---|---|
![]() | SimpleNetworkTime | Initializes a new instance of the SimpleNetworkTime class |
Name | Description | |
---|---|---|
![]() | Host | Gets or sets the NTP host address. |
![]() | Port | Gets or sets the NTP host port. |
![]() | ReceiveTimeout | Gets or sets the time (in milliseconds) until a synchronous attempt to receive data times out. |
![]() | SendTimeout | Gets or sets the time (in milliseconds) until a synchronous attempt to send data times out. |
Name | Description | |
---|---|---|
![]() | Equals | (Inherited from Object.) |
![]() | Finalize | Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.) |
![]() | GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) |
![]() | GetNetworkTime | Gets the current time from an NTP server. |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() | ToString | (Inherited from Object.) |
![]() |
---|
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). |
![]() |
---|
The SimpleNetworkTime class is not available in the .NET Standard PLUSManaged assembly. |