| rtime | time (37) fetch program |
Rtime is a quite simple C-program to get the time from a remote host using the time (port 37, RFC868) protocol. It is licensed under GPL.
I wrote it to test my skills in socket programming.
The rtime program is very similar to rdate (that can be found in most unix distributions) with the advantage that you can specify the port to connect to (if it is not 37). The disadvantage (and safty thing) is that you can not use it to set the time of the local computer.
- Can get time from a time (port 37) server.
- Can optionally use other ports than the default 37.
If you are interrested in this project you can find the source. This file is generated on the fly from SVN so be patient.
The usage is very simple: 'rtime hostname [port/service]'. You will get the date on the next line.
All feedback are welcome.
It you are interested it is possible to view the SVN-tree.
Copyright © 2008 Ola Lundqvist |