C# Class Platform.Network.Time.NtpNetworkTimeClient

A NetworkTimeClient that can retrieve the time form an NTP server.
Inheritance: NetworkTimeClient
Datei anzeigen Open project: platformdotnet/Platform

Public Methods

Method 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

Protected Methods

Method Description
OnTaskException ( TaskExceptionEventArgs eventArgs ) : void

Private Methods

Method Description
CreateUdpClient ( ) : UdpClient

Method Details

Clear() public method

Clears the current value.
public Clear ( ) : void
return void

DoRun() public method

public DoRun ( ) : void
return void

NtpNetworkTimeClient() public method

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

NtpNetworkTimeClient() public method

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
return System

OnTaskException() protected method

protected OnTaskException ( TaskExceptionEventArgs eventArgs ) : void
eventArgs TaskExceptionEventArgs
return void