Name | Description | |
---|---|---|
![]() | NtpTimeClient Constructor | Overloaded. Initializes a new instance of NtpTimeClient class with a container. |
Name | Description | |
---|---|---|
![]() | InvokeFromCurrentThreads | Gets a value indicating whether to raise events from the current thread or
to use a SynchronizationContext object available when an asynchronous operation was started.
The default value is false . (Inherited from TimeClientBase) |
![]() | ProtocolVersion | Gets or sets the Sntp/Ntp protocol version number. |
![]() | ServerName | Gets or sets the server address. (Inherited from TimeClientBase) |
![]() | ServerPort | Gets or sets the server port. (Inherited from TimeClientBase) |
![]() | SkipStratumCheck | Gets or sets a value indicating whether the stratum value returned by the server is checked for a value indicating a Kiss-of-Death (error) packet. |
![]() | Timeout | Gets or sets the maximum amount of time the client waits for response from the time server (before giving up and reporting failure). Set to 0 (zero) to indicate that the request does not timeout. (Inherited from TimeClientBase) |
Name | Description | |
---|---|---|
![]() ![]() | DefaultPort | Default NTP port number (123). |
Name | Description | |
---|---|---|
![]() | GetTime | Sends a request for time to the NTP/SNTP server passed to the constructor and waits for the answer that contains the time values to calculate the offset between the local and server time. |
![]() | GetTimeAsync | Overloaded. Gets the server time asynchronously by sending a request for time to the Sntp/Ntp server passed to the constructor and waits for the answer that contains the time values to calculate the offset between the local and server time. |
![]() | SynchronizeSystemTime | Overloaded. Overridden. Synchronize the local time with the server. |
![]() | SynchronizeSystemTimeAsync | Synchronizes the local time with the server asynchronously. (Inherited from TimeClientBase) |
Name | Description | |
---|---|---|
![]() | OnGetTimeCompleted | Raises the GetTimeCompleted event. |
![]() | OnSynchronizeSystemTimeCompleted | Raises the SynchronizeSystemTimeCompleted event. (Inherited from TimeClientBase) |
Name | Description | |
---|---|---|
![]() | GetTimeCompleted | Occurs when an asynchronous get time operation completes. |
![]() | SynchronizeSystemTimeCompleted | Occurs when an asynchronous local and server time synchronization completes. (Inherited from TimeClientBase) |