Cocom is an implementation of the NTP-protocol, to receive the time from NTP-server. The client does not necessarily need arguments.
The implementation does not use any NTP-libraries.
For further information on NTP, see RFC-5905.
The installation can be applied by running the following makefile target:
make build && make install
Cocom will be installed to /usr/local/bin/ and the installation target might need higher access privileges. Therefore, it is supposed to be in the global interpreter path. If an installation is not intended, it can be run locally. As a default host the NTP server from the PTB-Braunschweig is set.
Alternatively it can be run with the release profile.
Currently, Cocom expects an NTP host, if not provided the default NTP server is used. If no flag is provided the client will return the current timestamp from the given NTP host.
NTP-Client purely written in Rust.
cocom [FLAGS] [OPTIONS] [HOST]
-d, --debug Prints the fields of the received NTP-packet.
-h, --help Prints help information
-v, --verbose Activates terminal output
-V, --version Prints version information
-b, --bind <bind> Specifies the binding address for the UDP socket. The following format is required; [IP]:[PORT]
<HOST> Specifies the desired NTP-server.
A Docker-container can be build by running the
docker build -t cocom . && docker run -it cocom /bin/sh
The documentation can be generated with the following makefile target:
Documentation artifacts can be found in cocom/doc.