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

📄 c-agent6.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>    The WindNet SNMPv1/v2c Agent   </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="c-agent.html"><img border="0" alt="[Top]" src="icons/top.gif"></a><a href="c-agent5.html"><img border="0" alt="[Prev]" src="icons/prev.gif"></a><a href="c-agent7.html"><img border="0" alt="[Next]" src="icons/next.gif"></a></p><font face="Helvetica, sans-serif" class="sans"><h3 class="H2"><i><a name="83771">4.6  &nbsp;&nbsp;Method Routines</a></i></h3></font><dl class="margin"><dl class="margin"><dd><p class="Body"><a name="83772"> </a>Method routines are sections of code which perform the actions specified by SNMP directives, such as retrieving or setting the value of a certain variable (a <b class="keyword">GET</b> or <b class="keyword">SET</b> routine, respectively).</p><dd><p class="Body"><a name="83773"> </a>The design of method routines must be based on the variables which the routines view and alter. <b class="command">mibcomp</b>, the provided MIB compiler, can produce a "stub", a set of code which a designer can use as a starting point for creating method routines. For more information, see <a href="c-extend3.html#83539"><i class="title">6.3&nbsp;Compile-time MIB Extensions</i></a>, and <a href="x-mibcomp.html#83422"><i class="title">A.&nbsp;The MIB Compiler User's Guide</i></a>. Also see the section on <b class="library">m2Lib</b> in the <i class="title">VxWorks Reference Manual</i>.</p><dd><p class="Body"><a name="83780"> </a>Method routines can be written to behave asynchronously from the SNMP agent. In this case, the method routine spawns a task to complete the requested activities, and the method routine returns before the task completes. For more information, see <a href="c-extend5.html#84336"><i class="title">6.5&nbsp;Asynchronous Method Routines</i></a>.</p></dl></dl><dl class="margin"><dd><table border="0" cellpadding="0" cellspacing="0"><tr valign="top"><td valign="top" width="40"><a name="85499"><br></a><img border="0" alt="*" src="icons/note.gif">&nbsp;&nbsp;&nbsp;</td><td><div class="Note"><hr><b class="symbol_UC">NOTE: </b>The processing of a single message from an SNMP master may require the execution of several method routines. As mentioned above, it is possible for the SNMP agent to run these method routines asynchronously. However, this does not make the SNMP agent asynchronous with respect to the SNMP manager. The SNMP agent processes messages from the SNMP manager synchronously. Thus, it does not accept a new message until it has completed processing for the last message. <hr></div></td></tr></table></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="c-agent.html"><img border="0" alt="[Top]" src="icons/top.gif"></a><a href="c-agent5.html"><img border="0" alt="[Prev]" src="icons/prev.gif"></a><a href="c-agent7.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 + -