问题
I'm creating a p2p audio-midi streaming application using Java (unfortunately) and I'm searching for a way to provide network time synchronization between certain peers (sources) using a reliable protocol implementation (like NTP) but I can't find any related libraries to use.I also have a limited amount of time to spend in order to implement something like this myself. So, does anyone know any solutions for network time synchronization using Java, NTP or alternative protocols/methods/ideas ? I will really appreciate any ideas! Thank you!
回答1:
Jakarta Commons has an NTP component together with examples.
来源:https://stackoverflow.com/questions/925524/network-time-synchronization-with-java