RevenantX / LiteNetLib

Lite reliable UDP library for Mono and .NET
https://revenantx.github.io/LiteNetLib/index.html
MIT License
3.07k stars 496 forks source link

NTP Functionality #154

Closed rwvens closed 6 years ago

rwvens commented 6 years ago

There's mention of NTP time requests in the readme.

I hate to make an issue of this, but I seriously can't find the relevant code, though to be fair all I tried was looking through the samples and hoping to stumble upon it via Intellisense (isn't there any documentation?). Where do I find LiteNetLib's NTP functionality?

As an aside, I'm using LiteNetLib for game networking, and it's very important for me to establish a common time basis synchronized as closely as possible. Am I right in assuming NTP is the best way to go about this?

NVentimiglia commented 6 years ago

https://github.com/RevenantX/LiteNetLib/blob/1c1aae653ed9c4cc19a0fbf8f88bd287bbcf47e2/LibSample/Program.cs