Open Ethernet Networking (OpEN) API Guide and Reference Manual
3.6.0.3
|
Simple Network Time Protocol (SNTP) is a system for synchronizing the clocks of networked computer systems. It is less complicated version of Network Time Protocol (NTP). SNTP can be used when the ultimate performance of the full NTP implementation is not needed.
This document provides a brief description of the SNTP OpEN APIs. The SNTP OpEN APIs allow processes outside of the ICOS main process (switchdrvr) access to SNTP services. It provides the following services:
All 'Set' operations may affect the Switch behavior and configuration.
In the main function, the sample application initializes the OpEN API RPC service by calling openapiClientRegister() and waits for the RPC service in switchdrvr to start. A Client Handle is returned by openapiClientRegister() which is used while invoking the OpEN APIs. The application then exercises the associated OpEN APIs and logs informational and/or error messages on the console. The example application runs to its completion and exits.
sntp_example.c is a sample application that demonstrates the use of the SNTP OpEN APIs. sntp_example is started from the command line and has the following usage syntax:
Usage: sntp_example <test#> <arg1> <arg2> ...
It exercises all the SNTP OpEN APIs with appropriate arguments to manage the SNTP component in the ICOS main process (switchdrvr).