C# 클래스 MFToolkit.Net.Ntp.NtpClient

Static class to receive the time from a NTP server.
파일 보기 프로젝트 열기: ppatierno/codesamples

공개 메소드들

메소드 설명
GetNetworkTime ( ) : System.DateTime

Gets the current DateTime from time-a.nist.gov.

GetNetworkTime ( IPEndPoint ep ) : System.DateTime

Gets the current DateTime form ep IPEndPoint.

GetNetworkTime ( string ntpServer ) : System.DateTime

Gets the current DateTime from ntpServer.

메소드 상세

GetNetworkTime() 공개 정적인 메소드

Gets the current DateTime from time-a.nist.gov.
public static GetNetworkTime ( ) : System.DateTime
리턴 System.DateTime

GetNetworkTime() 공개 정적인 메소드

Gets the current DateTime form ep IPEndPoint.
public static GetNetworkTime ( IPEndPoint ep ) : System.DateTime
ep System.Net.IPEndPoint The IPEndPoint to connect to.
리턴 System.DateTime

GetNetworkTime() 공개 정적인 메소드

Gets the current DateTime from ntpServer.
public static GetNetworkTime ( string ntpServer ) : System.DateTime
ntpServer string The hostname of the NTP server.
리턴 System.DateTime