⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 c-sntp2.html

📁 vxWorks网络协议驱动开发用户手册写协议栈时的好指引
💻 HTML
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"><html><head><link rel="STYLESHEET" type="text/css" href="wrs.css"><title>    SNTP: A Time Protocol     </title></head><body bgcolor="FFFFFF"><p class="navbar" align="right"><a href="index.html"><img border="0" alt="[Contents]" src="icons/contents.gif"></a><a href="c-sntp.html"><img border="0" alt="[Index]" src="icons/index.gif"></a><a href="c-sntp.html"><img border="0" alt="[Top]" src="icons/top.gif"></a><a href="c-sntp1.html"><img border="0" alt="[Prev]" src="icons/prev.gif"></a><a href="c-sntp3.html"><img border="0" alt="[Next]" src="icons/next.gif"></a></p><font face="Helvetica, sans-serif" class="sans"><h3 class="H2"><i><a name="89961">9.2  &nbsp;&nbsp;Using the SNTP Client</a></i></h3></font><dl class="margin"><dl class="margin"><dd><p class="Body"><a name="89962"> </a>To include the SNTP client, reconfigure your VxWorks image.  The relevant configuration macro is  <b class="symbol_UC">INCLUDE_SNTPC</b>. To retrieve the current time from a remote source, call <b class="routine"><i class="routine">sntpcTimeGet</i></b><b>(&nbsp;)</b>. This routine retrieves the time reported by a remote source and converts that value for POSIX-compliant clocks. To get time information, <b class="routine"><i class="routine">sntpcTimeGet</i></b><b>(&nbsp;)</b>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 <b class="routine"><i class="routine">sntpcTimeGet</i></b><b>(&nbsp;)</b> reference entry. </p></dl></dl><a name="foot"><hr></a><p class="navbar" align="right"><a href="index.html"><img border="0" alt="[Contents]" src="icons/contents.gif"></a><a href="c-sntp.html"><img border="0" alt="[Index]" src="icons/index.gif"></a><a href="c-sntp.html"><img border="0" alt="[Top]" src="icons/top.gif"></a><a href="c-sntp1.html"><img border="0" alt="[Prev]" src="icons/prev.gif"></a><a href="c-sntp3.html"><img border="0" alt="[Next]" src="icons/next.gif"></a></p></body></html><!---by WRS Documentation (), Wind River Systems, Inc.    conversion tool:  Quadralay WebWorks Publisher 4.0.11    template:         CSS Template, Jan 1998 - Jefro --->

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -