Tag: ntp

如何编写NTP客户端?

我正在寻找用C语言编写NTP客户端的代码示例。我发现:修复了代码上的一些问题,并且能够编译。 但在“发送数据……”之后,它并没有什么。 我不知道如何解决这个问题。 代码或服务器的问题在哪里? 提前致谢。 /* * This code will query a ntp server for the local time and display * it. it is intended to show how to use a NTP server as a time * source for a simple network connected device. * This is the C version. The orignal was in Perl […]