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

📄 snmp.refentries.toc43.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">masterIoInit</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.TOC42.html"><img border="0" alt="[Prev]" src="icons/prev.gif"></a><a href="snmp.refEntries.TOC44.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="89077"> <i class="i">masterIoInit</i>(&nbsp;) </a></i></h2></font><h4 class="SH"><a name="89078"> </a>NAME </h4><dl class="margin"><dl class="margin"><dd><a name="89079"><div class="aX"><b class="routine"><i class="routine">masterIoInit</i></b><b>(&nbsp;)</b>     -     create the IPC mechanism at the SNMP master agent </div></a></dl></dl><h4 class="SH"><a name="89080"> </a>SYNOPSIS </h4><dl class="margin"><dl class="margin"><dd><pre class="Code"><b><a name="89081">STATUS masterIoInit ( void )</a></b></pre></dl></dl><h4 class="SH"><a name="89082"> </a>DESCRIPTION </h4><dl class="margin"><dl class="margin"><dd><p class="Body"><a name="89083"> </a>This routine, called from <b class="routine"><i class="routine">snmpIoInit</i></b><b>(&nbsp;)</b>, creates the SNMP master agent side of the inter-process communication (IPC) mechanism used to carry messages between the subagents and the master agent. In this implementation, <b class="routine"><i class="routine">masterIoInit</i></b><b>(&nbsp;)</b> creates a single message queue. The identity of this message queue is hard coded into every subagent. The subagent puts a message on this queue when it needs to send a message to the master agent.</p><dd><p class="Body"><a name="89084"> </a>The message queue created by <b class="routine"><i class="routine">masterIoInit</i></b><b>(&nbsp;)</b> is monitored by <b>tMonQue</b>. The <b>tMonQue</b> task is one of the two tasks used to implement the SNMP master agent. The purpose of <b>tMonQue</b> is to note which messages in its queue are registration requests and which are responses to queries. If the message is a subagent registration request, <b>tMonQue</b> handles the request and sends a message back to the subagent telling it whether the registration was successful or not.</p><dd><p class="Body"><a name="89085"> </a>If the message is a response to a query, <b>tMonQue</b> transfers the message to the message queue monitored by <b>tSnmpd</b>. The <b>tSnmpd</b> task then encodes the response in an SNMP packet and transmits the packet over a socket to the SNMP manager.</p><dd><p class="Body"><a name="89086"> </a>Although the shipped version of this function uses message queues as the IPC between the master agent and its subagents, the IPC mechanism is isolated to the relatively small number functions defined in <b>masterIoLib</b>. Thus, if necessary, you should have little trouble porting the code to use an IPC more suitable to your transport needs.</p><dd><p class="Body"><a name="89087"> </a>For example, you could use sockets instead of message queues. However, if you decide to change the IPC mechanism, you must do so both in the master agent and in its subagents. This means that you must also modify the functions defined in <b>saIoLib</b>, the library that defines the agent side of the IPC mechanism. </p></dl></dl><h4 class="SH"><a name="89088"> </a>RETURNS </h4><dl class="margin"><dl class="margin"><dd><p class="Body"><a name="89089"> </a>OK or ERROR. </p></dl></dl><h4 class="SH"><a name="89090"> </a>SEE ALSO </h4><dl class="margin"><dl class="margin"><dd><p class="Body"><a name="89091"> </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.TOC42.html"><img border="0" alt="[Prev]" src="icons/prev.gif"></a><a href="snmp.refEntries.TOC44.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 + -