C# 클래스 Platform.Network.Time.NtpNetworkTimeClient

A NetworkTimeClient that can retrieve the time form an NTP server.
상속: NetworkTimeClient
파일 보기 프로젝트 열기: platformdotnet/Platform

공개 메소드들

메소드 설명
Clear ( ) : void

Clears the current value.

DoRun ( ) : void
NtpNetworkTimeClient ( string serverName ) : System

Constructs a new NtpNetworkTimeClient

NtpNetworkTimeClient ( string serverName, int port ) : System

Constructs a new NtpNetworkTimeClient

보호된 메소드들

메소드 설명
OnTaskException ( TaskExceptionEventArgs eventArgs ) : void

비공개 메소드들

메소드 설명
CreateUdpClient ( ) : UdpClient

메소드 상세

Clear() 공개 메소드

Clears the current value.
public Clear ( ) : void
리턴 void

DoRun() 공개 메소드

public DoRun ( ) : void
리턴 void

NtpNetworkTimeClient() 공개 메소드

Constructs a new NtpNetworkTimeClient
public NtpNetworkTimeClient ( string serverName ) : System
serverName string The name or IP address of the NTP server
리턴 System

NtpNetworkTimeClient() 공개 메소드

Constructs a new NtpNetworkTimeClient
public NtpNetworkTimeClient ( string serverName, int port ) : System
serverName string The name or IP address of the NTP server
port int The UDP port number for the NTP server
리턴 System

OnTaskException() 보호된 메소드

protected OnTaskException ( TaskExceptionEventArgs eventArgs ) : void
eventArgs TaskExceptionEventArgs
리턴 void