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

📄 snmp.refentries.toc41.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">hdrBlkBuild</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.TOC40.html"><img border="0" alt="[Prev]" src="icons/prev.gif"></a><a href="snmp.refEntries.TOC42.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="89302"> <i class="i">hdrBlkBuild</i>(&nbsp;) </a></i></h2></font><h4 class="SH"><a name="89303"> </a>NAME </h4><dl class="margin"><dl class="margin"><dd><a name="89304"><div class="aX"><b class="routine"><i class="routine">hdrBlkBuild</i></b><b>(&nbsp;)</b>     -     create the header block and the demuxer information </div></a></dl></dl><h4 class="SH"><a name="89305"> </a>SYNOPSIS </h4><dl class="margin"><dl class="margin"><dd><pre class="Code"><b><a name="89306">void hdrBlkBuild &nbsp;&nbsp;&nbsp;&nbsp;( &nbsp;&nbsp;&nbsp;&nbsp;SA_HEADER_T *&nbsp;&nbsp;pHdr,&nbsp;&nbsp;&nbsp;&nbsp; /* header block&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*/ &nbsp;&nbsp;&nbsp;&nbsp;VBL_T *&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;pVblist,&nbsp;&nbsp;/* vblist that was built&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; */ &nbsp;&nbsp;&nbsp;&nbsp;int&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;opt,&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; /* reg_option suggesting reg/dereg */ &nbsp;&nbsp;&nbsp;&nbsp;int&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;group,&nbsp;&nbsp;&nbsp; /* group ID&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&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; /* ipchandle&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&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="89314"> </a>DESCRIPTION </h4><dl class="margin"><dl class="margin"><dd><p class="Body"><a name="89315"> </a>This routine is called to start a process that encodes a message and transmits it to the master agent. Internally, this routine first prepares a header block and demuxer information. These are then passed in to a <b class="routine"><i class="routine">saMsgBuild</i></b><b>(&nbsp;)</b> call, along with a varbind list, and a pointer to the IPC mechanism that the master agent can use to respond to this message. As input, <b class="routine"><i class="routine">hdrBlkBuild</i></b><b>(&nbsp;)</b> expects:</p><dl class="margin"><dd><div class="Indent"><a name="89316"> </a><i class="i">pHdr <br></i>Expects a pointer to a previously allocated <b>SA_HEADER_T</b> structure. The <b class="routine"><i class="routine">hdrBlkBuild</i></b><b>(&nbsp;)</b> routine uses this structure as a storage place within which to build the header block for the message to the master agent.</div><br><dd><div class="Indent"><a name="89317"> </a><i class="i">pVblist <br></i>Expects a pointer to the <b>VBL_T</b> structure containing the varbind list that you want to include in the message.</div><br><dd><div class="Indent"><a name="89318"> </a><i class="i">opt <br></i>Expects an operation code that indicates the type of this message. Valid operation codes are as follows:</div><br><dd><div class="Indent"><a name="89319"> </a><b>SA_REG_OBJ_REQUEST</b> registers an object with the master agent's MIB tree. The response from the master agent will contain an <b>SA_REG_OBJ_REPLY</b> code.</div><br><dd><div class="Indent"><a name="89320"> </a><b>SA_REM_OBJ_REQUEST</b> removes (deregisters) an object from the master agent's MIB tree. The response from the master agent will contain an <b>SA_REM_OBJ_REPLY</b> code.</div><br><dd><div class="Indent"><a name="89321"> </a><b>SA_REG_INST_REQUEST</b> registers an instance with the master agent's MIB tree. The response from the master agent will contain an <b>SA_REG_INST_REPLY</b> code.</div><br><dd><div class="Indent"><a name="89322"> </a><b>SA_REM_INST_REQUEST</b> removes (deregisters) an instance from the master agent's MIB tree. The response from the master agent will contain an <b>SA_REG_OBJ_REPLY</b> code.</div><br><dd><div class="Indent"><a name="89323"> </a><b>SA_QUERY_REQUEST</b> requests SNMP operations. The response from the master agent will contain an <b>SA_QUERY_REPLY</b> code.</div><br><dd><div class="Indent"><a name="89324"> </a><b>SA_TRAP_REQUEST</b> tells the master agent that this message should be handled as a trap. The response from the master agent (if any) will contain an <b>SA_TRAP_REPLY</b> code.</div><br><dd><div class="Indent"><a name="89325"> </a><i class="i">group <br></i>Expects the group ID that the master agent has assigned to the objects or instances referenced in <i class="i">pVblist</i>. This group ID was returned in an If <b>SA_REG_OBJ_REPLY</b> or an <b>SA_REG_INST_REPLY</b> from the master agent. This is an object registration request, you can supply a NULL pointer here.</div><br><dd><div class="Indent"><a name="89326"> </a><i class="i">saId <br></i>Expects a pointer to the IPC mechanism that the master agent can use to respond to the message. </div><br></dl></dl></dl><h4 class="SH"><a name="89327"> </a>RETURNS </h4><dl class="margin"><dl class="margin"><dd><p class="Body"><a name="89328"> </a>N/A </p></dl></dl><h4 class="SH"><a name="89329"> </a>SEE ALSO </h4><dl class="margin"><dl class="margin"><dd><p class="Body"><a name="89330"> </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.TOC40.html"><img border="0" alt="[Prev]" src="icons/prev.gif"></a><a href="snmp.refEntries.TOC42.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 + -