socket-ntp icon indicating copy to clipboard operation
socket-ntp copied to clipboard

Setting the server url

Open kikz4life opened this issue 11 years ago • 1 comments

Hi just want a question. What if I want to use this server url: pool.ntp.org to get the ntp time. Can this be done in your socket-ntp?

thanks,

kikz4life avatar Nov 13 '13 06:11 kikz4life

hey, unfortunately no, not really :(

the main point of this library is to keep track of the clock offset between the client and server. it could be useful for things like gaming -- I was using it to sync audio between a bunch of different clients all connected to the same server.

as such, it doesn't use the official ntp protocol, just a stand-in to calculate the difference between client and server times.

calvinfo avatar Nov 13 '13 06:11 calvinfo