使用Java查询服务器的时间 [英] Using Java to Query a Server for the Time
本文介绍了使用Java查询服务器的时间的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想要一个服务器,他的IP我知道,发送日期和时间给客户端。
I want to ask a server, whose IP I know, to send the date and time to a client.
如何在Java中实现?
How can I implement this in Java?
推荐答案
详情: http://www.informit.com/articles /article.aspx?p=26316&seqNum=3
客户端 http://commons.apache.org/net/apidocs/org/apache/commons/net/ntp/NTPUDPClient.html
这篇关于使用Java查询服务器的时间的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文