Synchronize the local time with the DAYTIME server.
Namespace:
Rebex.Net
Assembly:
Rebex.Time (in Rebex.Time.dll)
Syntax
Visual Basic |
---|
Public Shared Sub SynchronizeSystemClock ( _ serverName As String, _ serverPort As Integer, _ useTcp As Boolean _ ) |
C# |
---|
public static void SynchronizeSystemClock( string serverName, int serverPort, bool useTcp ) |
Parameters
- serverName
- Type: System..::..String
The time server hostname.
- serverPort
- Type: System..::..Int32
The time server port.
- useTcp
- Type: System..::..Boolean
True if communicate via TCP; false to communicate via UDP.