Synchronize the local time with the TIME server using TCP protocol.

Namespace:  Rebex.Net
Assembly:  Rebex.Time (in Rebex.Time.dll)

Syntax

Visual Basic
Public Shared Sub SynchronizeSystemClock ( _
	serverName As String, _
	serverPort As Integer _
)
C#
public static void SynchronizeSystemClock(
	string serverName,
	int serverPort
)

Parameters

serverName
Type: System..::..String
The time server hostname.
serverPort
Type: System..::..Int32
The time server port.

Version Information

.NET Compact Framework

Supported in: 3.9, 3.5

See Also