示例#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)
	{
		self->serverAddress = *ip;
		// We do a new request since the last one was never done.
		self->requestTime();
	}
}
示例#2
0
void connectOk()
{
	ntpClient.requestTime();
}