Method | Description | |
---|---|---|
GetNetworkTime ( string ntpServer ) : void |
Retrieve the current network time from ntp server "time.windows.com".
|
|
NtpService ( |
||
OnNTPTimeReceived ( Windows socket, Windows eventArguments ) : void |
Event hander when receiving response from the ntp server.
|
|
ReportNtpSyncStatus ( bool status, int rtt ) : void |
Report whether succeeded in sync with the ntp server or not.
|
|
abortSync ( ) : void |
Method | Description | |
---|---|---|
NTPQueryTimeout ( object sender, object e ) : void |
Report whether succeeded in sync with the ntp server or not.
|
|
SendNTPQuery ( object sender, object e ) : void | ||
SwapEndianness ( ulong x ) : uint |
public GetNetworkTime ( string ntpServer ) : void | ||
ntpServer | string | |
return | void |
public NtpService ( |
||
uiDispatcher | ||
return | System |
public OnNTPTimeReceived ( Windows socket, Windows eventArguments ) : void | ||
socket | Windows | The udp socket object which triggered this event |
eventArguments | Windows | event information |
return | void |
public ReportNtpSyncStatus ( bool status, int rtt ) : void | ||
status | bool | |
rtt | int | |
return | void |