예제 #1
0
파일: NtpClient.cpp 프로젝트: Bravo13/Sming
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();
}