C# 클래스 ChatterBox.Client.Presentation.Shared.Services.NtpService

상속: ChatterBox.Client.Presentation.Shared.MVVM.DispatcherBindableBase
파일 보기 프로젝트 열기: openpeer/ChatterBox 1 사용 예제들

공개 메소드들

메소드 설명
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