Creates an instance of Ntp class and binds it to the specified NTP time server.
Namespace:
Rebex.Net
Assembly:
Rebex.Time (in Rebex.Time.dll)
Syntax
Visual Basic |
---|
Public Sub New ( _ serverName As String, _ serverPort As Integer _ ) |
C# |
---|
public Ntp( string serverName, int serverPort ) |
Parameters
- serverName
- Type: System..::..String
The time server hostname.
- serverPort
- Type: System..::..Int32
The time server port.