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

📄 snmp.refentries.toc61.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">saMsgBuild</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.TOC60.html"><img border="0" alt="[Prev]" src="icons/prev.gif"></a><a href="snmp.refEntries.TOC62.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="89388"> <i class="i">saMsgBuild</i>(&nbsp;) </a></i></h2></font><h4 class="SH"><a name="89389"> </a>NAME </h4><dl class="margin"><dl class="margin"><dd><a name="89390"><div class="aX"><b class="routine"><i class="routine">saMsgBuild</i></b><b>(&nbsp;)</b>     -     build and encode a message and send it to the master agent </div></a></dl></dl><h4 class="SH"><a name="89391"> </a>SYNOPSIS </h4><dl class="margin"><dl class="margin"><dd><pre class="Code"><b><a name="89392">void saMsgBuild &nbsp;&nbsp;&nbsp;&nbsp;( &nbsp;&nbsp;&nbsp;&nbsp;VBL_T *&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;pVblist,&nbsp;&nbsp; /* pointer to varbind list */ &nbsp;&nbsp;&nbsp;&nbsp;SA_HEADER_T *&nbsp;&nbsp;pHdr,&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* pointer to header block */ &nbsp;&nbsp;&nbsp;&nbsp;SA_DEMUX_T *&nbsp;&nbsp; pDemuxer,&nbsp;&nbsp;/* pointer to demuxer&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*/ &nbsp;&nbsp;&nbsp;&nbsp;PTR_T&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;saId&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* IPC handle&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*/ &nbsp;&nbsp;&nbsp;&nbsp;)</a></b></pre></dl></dl><h4 class="SH"><a name="89399"> </a>DESCRIPTION </h4><dl class="margin"><dl class="margin"><dd><p class="Body"><a name="89400"> </a>The <b class="routine"><i class="routine">hdrBlkCreate</i></b><b>(&nbsp;)</b> routine calls <b class="routine"><i class="routine">saMsgBuild</i></b><b>(&nbsp;)</b> to build a message, encode it, and transmit it to the master agent. The message is built up from the information provided in the input parameters:</p><dl class="margin"><dd><div class="Indent"><a name="89401"> </a><i class="i">pVblist <br></i>Expects a pointer to the <b>VBL_T</b> structure containing the varbind list you want to include in the message. </div><br><dd><div class="Indent"><a name="89402"> </a><i class="i">pHdr <br></i>Expects a pointer to the header for this message. </div><br><dd><div class="Indent"><a name="89403"> </a><i class="i">pDemuxer <br></i>Expects a pointer to the demuxer information for this message. The demuxer information consists of a string and an object ID. In a message dealing with a version 1 request, the string is the community string and the object ID is unused. In a message dealing with a version 2 request, the string is the local entity string from the context and the object ID is the local time object ID from the context. </div><br><dd><div class="Indent"><a name="89404"> </a><i class="i">saId <br></i>Expects a pointer to the IPC mechanism (a message queue ID) that the master agent can use to respond to this message. </div><br></dl><dd><p class="Body"><a name="89405"> </a>To encode the message, this routine calls <b class="routine"><i class="routine">snmpSubEncode</i></b><b>(&nbsp;)</b>. To send the message to the master agent, this routine calls <b class="routine"><i class="routine">saIoWrite</i></b><b>(&nbsp;)</b>. </p></dl></dl><h4 class="SH"><a name="89406"> </a>RETURNS </h4><dl class="margin"><dl class="margin"><dd><p class="Body"><a name="89407"> </a>N/A </p></dl></dl><h4 class="SH"><a name="89408"> </a>SEE ALSO </h4><dl class="margin"><dl class="margin"><dd><p class="Body"><a name="89409"> </a><b class="library">saIoLib</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.TOC60.html"><img border="0" alt="[Prev]" src="icons/prev.gif"></a><a href="snmp.refEntries.TOC62.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 + -