C# Class ChatterBox.Client.Presentation.Shared.Services.NtpService

Inheritance: ChatterBox.Client.Presentation.Shared.MVVM.DispatcherBindableBase
Afficher le fichier Open project: openpeer/ChatterBox Class Usage Examples

Méthodes publiques

Méthode Description
GetNetworkTime ( string ntpServer ) : void

Retrieve the current network time from ntp server "time.windows.com".

NtpService ( CoreDispatcher uiDispatcher ) : System
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

Private Methods

Méthode 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

Method Details

GetNetworkTime() public méthode

Retrieve the current network time from ntp server "time.windows.com".
public GetNetworkTime ( string ntpServer ) : void
ntpServer string
Résultat void

NtpService() public méthode

public NtpService ( CoreDispatcher uiDispatcher ) : System
uiDispatcher Windows.UI.Core.CoreDispatcher
Résultat System

OnNTPTimeReceived() public méthode

Event hander when receiving response from the ntp server.
public OnNTPTimeReceived ( Windows socket, Windows eventArguments ) : void
socket Windows The udp socket object which triggered this event
eventArguments Windows event information
Résultat void

ReportNtpSyncStatus() public méthode

Report whether succeeded in sync with the ntp server or not.
public ReportNtpSyncStatus ( bool status, int rtt ) : void
status bool
rtt int
Résultat void

abortSync() public méthode

public abortSync ( ) : void
Résultat void