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

📄 snmp.refentries.toc28.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><i class="i">SNMP_Bind_Unsigned_Integer</i>(&nbsp;)     SNMP Reference   </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><a href="snmp.refEntries.TOC.html"><img border="0" alt="[Top]" src="icons/top.gif"></a><a href="snmp.refEntries.TOC27.html"><img border="0" alt="[Prev]" src="icons/prev.gif"></a><a href="snmp.refEntries.TOC29.html"><img border="0" alt="[Next]" src="icons/next.gif"></a></p><font face="Helvetica, sans-serif" class="sans"><h2 class="H1"><i><a name="83954"> <i class="i">SNMP_Bind_Unsigned_Integer</i>(&nbsp;) </a></i></h2></font><h4 class="SH"><a name="83955"> </a>NAME </h4><dl class="margin"><dl class="margin"><dd><a name="83956"><div class="aX"><b class="routine"><i class="routine">SNMP_Bind_Unsigned_Integer</i></b><b>(&nbsp;)</b>     -     bind an unsigned-integer variable </div></a></dl></dl><h4 class="SH"><a name="83957"> </a>SYNOPSIS </h4><dl class="margin"><dl class="margin"><dd><pre class="Code"><b><a name="83958">int SNMP_Bind_Unsigned_Integer &nbsp;&nbsp;&nbsp;&nbsp;( &nbsp;&nbsp;&nbsp;&nbsp;SNMP_PKT_T *&nbsp;&nbsp;pktp,&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; /* internal representation of snmp packet */ &nbsp;&nbsp;&nbsp;&nbsp;int&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; index,&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* index of varbind entry&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*/ &nbsp;&nbsp;&nbsp;&nbsp;);</a></b></pre></dl></dl><h4 class="SH"><a name="83967"> </a>DESCRIPTION </h4><dl class="margin"><dl class="margin"><dd><p class="Body"><a name="83968"> </a>This routine binds an unsigned-integer variable in the variable-binding list of an SNMP packet structure.</p><dd><p class="Body"><a name="83969"> </a><i class="i">pktp</i> references the packet structure.</p><dd><p class="Body"><a name="83970"> </a><i class="i">index</i> is a zero-based index indicating which variable-binding entry is to be used.</p><dd><p class="Body"><a name="83971"> </a><i class="i">compc</i> and <i class="i">compl</i> are the component count and components, respectively, of the object identifier of the variable being bound.</p><dd><p class="Body"><a name="83972"> </a><i class="i">typeFlags</i> is one of the following manifest constants: VT_COUNTER, VT_GAUGE or VT_TIMETICKS.</p><dd><p class="Body"><a name="83973"> </a><i class="i">value</i> is the unsigned-integer value to be bound.</p><dd><p class="Body"><a name="83974"> </a>Macro forms of this procedure may be more convenient: <b class="routine"><i class="routine">SNMP_Bind_Gauge</i></b><b>(&nbsp;)</b>, <b class="routine"><i class="routine">SNMP_Bind_Timeticks</i></b><b>(&nbsp;)</b>, and <b class="routine"><i class="routine">SNMP_Bind_Counter</i></b><b>(&nbsp;)</b>. </p></dl></dl><h4 class="SH"><a name="83975"> </a>RETURNS </h4><dl class="margin"><dl class="margin"><dd><p class="Body"><a name="83976"> </a>0 if successful, otherwise -1.</p></dl></dl><h4 class="SH"><a name="83977"> </a>SEE ALSO </h4><dl class="margin"><dl class="margin"><dd><p class="Body"><a name="83978"> </a><b>snmpBindLib</b> </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><a href="snmp.refEntries.TOC.html"><img border="0" alt="[Top]" src="icons/top.gif"></a><a href="snmp.refEntries.TOC27.html"><img border="0" alt="[Prev]" src="icons/prev.gif"></a><a href="snmp.refEntries.TOC29.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 + -