April 10, 2002
This project contains a reusable class and some demo code that will connect to one of several time servers to retrieve following information:
- Modified Julian Date
- Daylight Savings
- Leap Second Code
- Health (of the server)
- Milliseconds that NIST advances
- UTC (NIST) Label
Please look at the DaytimeProtocol class for the meaning of each component.
The demo code also show a use of class interfaces: DaytimeProtocol notifies the object that queried it when it has finished receiving all data. This is accomplished through the use of a class interface shared by DaytimeProtocol and the calling object. In fact, any object can receive notification of DaytimeProtocol finishing simply by sharing the common interface.