Using VB.NET to query NTP Servers

泄露秘密 提交于 2019-12-11 05:27:49

问题


As the title describes I am looking for a way to query for the UTC time from NTP/SNTP Servers from 'VB.NET'. The only libraries I have found for VB.NET to such tasks appear require a fairly large sum of different forms of currency.

Any suggestions, comments, methods, or links?

Thanks!


回答1:


See How to Query an NTP Server using C#? . Not marking as a duplicate, as the solution linked to is in C#, and you asked for VB.NET. However, this can be compiled into a library, and still used within a VB.NET project - since everything compiles to MSIL anyway.

Otherwise, as shown in the linked examples, the implementations for NTP/SNTP are simple enough that implementations could easily be re-created from spec in VB.net with hopefully reasonable amounts of code.



来源:https://stackoverflow.com/questions/8867124/using-vb-net-to-query-ntp-servers

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!