Пример #1
0
void NtpClient::staticDnsResponse(const char *name, struct ip_addr *ip, void *arg)
{
	// DNS has been resolved

	NtpClient *self = (NtpClient*) arg;

	if (ip != NULL)
	{
		// We do a new request since the last one was never done.
		self->internalRequestTime(*ip);
	}
}
Пример #2
0
void connectOk()
{
	ntpClient.requestTime();
}