Time Class
Namespace: Rebex.Net
Assembly: Rebex.Time.dll (version 7.0.9147)
Provides methods for communication with TIME servers (RFC 868).
Syntax
public class Time : TimeBase
Inherited Members
Constructors
Name | Description |
---|---|
Time(String) | Creates an instance of Time class and binds it to the specified TIME server. |
Time(String, Int32) | Creates an instance of Time class and binds it to the specified TIME server. |
Fields
Name | Description |
---|---|
Default |
Default TIME port number (37). |
Properties
Name | Description |
---|---|
Timeout | Gets or sets the length of time in milliseconds before the operation times out
(specify -1 or 0 to indicate that the request does not time out).
Inherited from Time |
Use |
Gets or sets a value indicating whether to use the TCP protocol (default is UDP). |
Methods
Name | Description |
---|---|
Get |
Sends a request for time to the TIME server passed to the constructor
and waits for the answer that contains the time value.
Inherited from Time |
Get |
Begins asynchronous GetTime operation.
Sends a request for time to the TIME server passed to the constructor
and waits for the answer that contains the time value.
Inherited from Time |
Synchronize |
Synchronize the local time with the server.
Inherited from Time |
Synchronize |
Synchronize the local time with the TIME server using TCP protocol. |
Synchronize |
Synchronize the local time with the TIME server using TCP protocol. |
Synchronize |
Synchronize the local time with the TIME server. |
Synchronize |
Begins asynchronous SynchronizeSystemClock operation.
Synchronize the local time with the server.
Inherited from Time |