9.2   Using the SNTP Client

To include the SNTP client, reconfigure your VxWorks image. The relevant configuration macro is INCLUDE_SNTPC. To retrieve the current time from a remote source, call sntpcTimeGet( ). This routine retrieves the time reported by a remote source and converts that value for POSIX-compliant clocks. To get time information, sntpcTimeGet( )either sends a request and extracts the time from the reply, or it waits until a message is received from an SNTP/NTP server executing in broadcast mode. See the sntpcTimeGet( ) reference entry.