NetUtils.RequestTimeFromNTP Method

LiteNetLib

NetUtilsRequestTimeFromNTP Method

LiteNetLib
Request time from NTP server and calls callback (if success)

Namespace:  LiteNetLib
Assembly:  LiteNetLib (in LiteNetLib.dll) Version: 1.0.0.0
Syntax

C#
public static void RequestTimeFromNTP(
	string ntpServerAddress,
	int port,
	Action<Nullable<DateTime>> onRequestComplete
)

Parameters

ntpServerAddress
Type: SystemString
NTP Server address
port
Type: SystemInt32
port
onRequestComplete
Type: SystemActionNullableDateTime
callback (called from other thread!)
See Also

Reference