C# Class Platform.Network.Time.NtpNetworkTimeClient

A NetworkTimeClient that can retrieve the time form an NTP server.
Inheritance: NetworkTimeClient
Afficher le fichier Open project: platformdotnet/Platform

Méthodes publiques

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

Méthodes protégées

Méthode Description
OnTaskException ( TaskExceptionEventArgs eventArgs ) : void

Private Methods

Méthode Description
CreateUdpClient ( ) : UdpClient

Method Details

Clear() public méthode

Clears the current value.
public Clear ( ) : void
Résultat void

DoRun() public méthode

public DoRun ( ) : void
Résultat void

NtpNetworkTimeClient() public méthode

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

NtpNetworkTimeClient() public méthode

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
Résultat System

OnTaskException() protected méthode

protected OnTaskException ( TaskExceptionEventArgs eventArgs ) : void
eventArgs TaskExceptionEventArgs
Résultat void