📄 slpgetrefreshinterval.html
字号:
<!doctype html public "-//w3c//dtd html 4.0 transitional//en"><html><head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <meta name="GENERATOR" content="Mozilla/4.72C-CCK-MCD Caldera Systems OpenLinux [en] (X11; U; Linux 2.2.14 i686) [Netscape]"> <title>OpenSLP Programmers Guide - SLPGetRefreshInterval()</title></head><body text="#000000" bgcolor="#FFFFFF" link="#0000EF" vlink="#51188E" alink="#FF0000"><h2>SLPGetRefreshInterval</h2><hr WIDTH="100%"><h3>Declaration</h3><tt>#include <slp.h></tt><p><tt>unsigned short SLPGetRefreshInterval()</tt><h3>Description</h3>Returns the minimum refresh interval that will be accepted by all SLP agentson the network.<h3>Parameters</h3>None<h3>Returns</h3>A positive integer value that is the smallest value that should be passedas a <tt><a href="SLPReg.html#lifetime">lifetime</a></tt> to <tt><a href="SLPReg.html">SLPReg()</a></tt>. If no agents advertise a minimum refresh interval, then zero is returned.( Zero is not a valid value for the <tt><a href="SLPReg.html#lifetime">lifetime</a></tt>parameter to <a href="SLPReg.html">SLPReg()</a> .)<br> <h3>Status</h3><table CELLPADDING=5 NOSAVE ><tr VALIGN=TOP NOSAVE><td NOSAVE>OpenSLP 0.7.8</td><td NOSAVE>Not Implemented. Always returns SLP_NOT_IMPLEMENTED</td></tr></table><h3>Notes</h3>RFC 2614 is really not clear as to how this function works. In factthe RFC declares the return to be of type <tt>unsigned short</tt> and specifiesthat (negative) <a href="SLPError.html">SLPError</a> codes are returnedon error. Since a negative return could also be interpreted as (avery large) unsigned value, OpenSLP does not return <a href="SLPError.html">SLPError</a>codes cast to unsigned shorts it just returns zero.<h3>See Also</h3><a href="SLPReg.html">SLPReg()</a></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -