Skip to content

gotamer/ntpc

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

GoDoc

This is a fork of Vladimir Vivien's go-ntp-client. (Thank you Vladimir) I added a syslog and local date update.

I use it to periodicly update my linux laptop system time. On my system it runs once an hour via a cron job.

A trivial NTP Client

This repository is an implementation of a (really) trivial NTP client in Go. It uses the encoding/binary package to encode and decode NTP packets sent to and received from a remote NTP server over UDP. You can learn more about NTP here, read the specs RFC5905, and find a (seemingly) way better Go NTP client, with many features implemented, here.

The code is explained in this writeup titled Let's make an NTP client in Go.

About

A Network Time Protocol client in Go

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 100.0%