📄 snmp.refentries.toc48.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">masterIpcSend</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.TOC47.html"><img border="0" alt="[Prev]" src="icons/prev.gif"></a><a href="snmp.refEntries.TOC49.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="89152"> <i class="i">masterIpcSend</i>( ) </a></i></h2></font><h4 class="SH"><a name="89153"> </a>NAME </h4><dl class="margin"><dl class="margin"><dd><a name="89154"><div class="aX"><b class="routine"><i class="routine">masterIpcSend</i></b><b>( )</b> - send a message to a subagent </div></a></dl></dl><h4 class="SH"><a name="89155"> </a>SYNOPSIS </h4><dl class="margin"><dl class="margin"><dd><pre class="Code"><b><a name="89156">INT_32_T masterIpcSend ( EBUFFER_T * pBuf, /* message to be sent */ PTR_T ipchandle /* address of subagent */ )</a></b></pre></dl></dl><h4 class="SH"><a name="89161"> </a>DESCRIPTION </h4><dl class="margin"><dl class="margin"><dd><p class="Body"><a name="89162"> </a>The SNMP master agent calls when it needs to send a query in <i class="i">buf</i> to the subagent at the <i class="i">ipchandle</i> address. If this routine is used with <b class="routine"><i class="routine">snmpMasterHandlerAsync</i></b><b>( )</b>, you must rewrite the function according to the prototype of <b>IPCSEND_AS_T</b> (see <b>subagent.h</b>). The additional parameter <i class="i">reqid</i> in this prototype is the request ID of the message being sent. Use <i class="i">reqid</i> to call <b class="routine"><i class="routine">snmpMasterCleanup</i></b><b>( )</b> if the IPC layer times out.</p><dd><p class="Body"><a name="89163"> </a>Internally, this function calls <b class="routine"><i class="routine">masterIoWrite</i></b><b>( )</b> to put a message on the subagent's message queue. If you have rewritten <b class="routine"><i class="routine">masterIoWrite</i></b><b>( )</b> to use different IPC mechanism, such as sockets, you should take care that your rewrite of <b class="routine"><i class="routine">masterIoWrite</i></b><b>( )</b> is compatible with its use in <b class="routine"><i class="routine">masterIpcSend</i></b><b>( )</b>. </p></dl></dl><h4 class="SH"><a name="89164"> </a>RETURNS </h4><dl class="margin"><dl class="margin"><dd><p class="Body"><a name="89165"> </a>0, if the packet has been sent successfully; 1, if an error has been detected that caused the objects to be marked inactive and possibly removed; 2, if the processing of the current packet is allowed to continue without freeing up objects. </p></dl></dl><h4 class="SH"><a name="89168"> </a>SEE ALSO </h4><dl class="margin"><dl class="margin"><dd><p class="Body"><a name="89169"> </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.TOC47.html"><img border="0" alt="[Prev]" src="icons/prev.gif"></a><a href="snmp.refEntries.TOC49.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 + -