Skip to content
/ ANTP Public

a lightweight implementation of NTP-system based on MultiPeerConnectivity framework

License

Notifications You must be signed in to change notification settings

organi2e/ANTP

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

47 Commits
 
 
 
 
 
 
 
 

Repository files navigation

What's this


A utility to synchronous system RTC between several nearby machines they are offline or cannot connect to any public ntp servers.  

Build dependency


XCode9.x, Swift 4.x and macOS 10.13.x

How to use


Run the utility with administrator privilege on nearby machines should be synchronous.
such as sudo ANTP  

Logging the work


Use log command to display the log.
i.e. log stream --info --predicate 'subsystem == "ANTP"' and launch the utility.

Split group of nearby machines


This utility builds a p2p network. The network has a name from process name. In short, renamed the process will build another p2p network group.
i.e. the operations mv ANTP ANTP-another
sudo ANTP-another will build another synchronous group.  

How to specify leader machine of RTC


This utility assume the machines has own host name, and refer RTC to the machine has first host name from sorted that.   In short, rename the host with younger name such as A.local, and run the utility.

About

a lightweight implementation of NTP-system based on MultiPeerConnectivity framework

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages