C# Класс ChatterBox.Client.Presentation.Shared.Services.NtpService

Наследование: ChatterBox.Client.Presentation.Shared.MVVM.DispatcherBindableBase
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
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

Описание методов

GetNetworkTime() публичный Метод

Retrieve the current network time from ntp server "time.windows.com".
public GetNetworkTime ( string ntpServer ) : void
ntpServer string
Результат void

NtpService() публичный Метод

public NtpService ( CoreDispatcher uiDispatcher ) : System
uiDispatcher Windows.UI.Core.CoreDispatcher
Результат System

OnNTPTimeReceived() публичный Метод

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
Результат void

ReportNtpSyncStatus() публичный Метод

Report whether succeeded in sync with the ntp server or not.
public ReportNtpSyncStatus ( bool status, int rtt ) : void
status bool
rtt int
Результат void

abortSync() публичный Метод

public abortSync ( ) : void
Результат void