📄 snmp.refentries.toc41.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>( ) 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>( ) </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>( )</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 ( SA_HEADER_T * pHdr, /* header block */ VBL_T * pVblist, /* vblist that was built */ int opt, /* reg_option suggesting reg/dereg */ int group, /* group ID */ PTR_T saId /* ipchandle */ )</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>( )</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>( )</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>( )</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 + -