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

📄 snmp.refentries.toc49.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">masterIpcRcv</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.TOC48.html"><img border="0" alt="[Prev]" src="icons/prev.gif"></a><a href="snmp.refEntries.TOC50.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="89171"> <i class="i">masterIpcRcv</i>(&nbsp;) </a></i></h2></font><h4 class="SH"><a name="89172"> </a>NAME </h4><dl class="margin"><dl class="margin"><dd><a name="89173"><div class="aX"><b class="routine"><i class="routine">masterIpcRcv</i></b><b>(&nbsp;)</b>     -     wait for a reply from the subagent </div></a></dl></dl><h4 class="SH"><a name="93053"> </a>SYNOPSIS </h4><dl class="margin"><dl class="margin"><dd><pre class="Code"><b><a name="93054">INT_32_T masterIpcRcv &nbsp;&nbsp;&nbsp;&nbsp;( &nbsp;&nbsp;&nbsp;&nbsp;EBUFFER_T *&nbsp;&nbsp;pBuf,&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* buffer to be filled&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; */ &nbsp;&nbsp;&nbsp;&nbsp;PTR_T&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ipchandle&nbsp;&nbsp;/* pointer to the IPC handle */ &nbsp;&nbsp;&nbsp;&nbsp;)</a></b></pre></dl></dl><h4 class="SH"><a name="89180"> </a>DESCRIPTION </h4><dl class="margin"><dl class="margin"><dd><p class="Body"><a name="89181"> </a>This routine waits for a response after query has been sent to the subagent. In the shipped implementation of the WindNet SNMP master agent, this function waits on a message queue that is local to the master agent. This message queue is used to facilitate communication between <b>tSnmpd</b>, the task that manages communication with the SNMP manager, and <b>tMonQue</b>, the task that manages communication between the SNMP master agent and its subagents.</p><dd><p class="Body"><a name="89182"> </a>In the shipped master agent code, subagents communicate with the master agent by putting messages on the message queue monitored by <b>tMonQue</b>. If the message is a control message, it is processed by <b class="routine"><i class="routine">snmpMasterHandlerWR</i></b><b>(&nbsp;)</b>. If the message is a query response, it is transferred to the local message queue on which <b class="routine"><i class="routine">masterIpcRcv</i></b><b>(&nbsp;)</b> is waiting. All of this is handled synchronously. Thus, while the master agent is waiting for a response from the subagent, it is blocked. Normally, the amount of time spent blocked is quite short and is not a problem.</p><dd><p class="Body"><a name="89183"> </a>However, it is an imperfect world, so it is possible that a response for a query never makes it back to the subagent. To handle this possibility, the shipped version of the WindNet SNMP master agent puts a timeout on its wait for a query response. If you should rewrite the SNMP master agent for any reason, make sure that you preserve this timeout. </p></dl></dl><h4 class="SH"><a name="89184"> </a>RETURNS </h4><dl class="margin"><dl class="margin"><dd><p class="Body"><a name="89185"> </a>0, if the packet was received successfully; 1, if an error or a timeout has caused the objects to be marked inactive and subsequently removed; 2, if the master agent will allow the current packet to be processed without freeing objects. </p></dl></dl><h4 class="SH"><a name="89188"> </a>SEE ALSO </h4><dl class="margin"><dl class="margin"><dd><p class="Body"><a name="89189"> </a><b>masterIoLib</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.TOC48.html"><img border="0" alt="[Prev]" src="icons/prev.gif"></a><a href="snmp.refEntries.TOC50.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 + -