📄 snmp.refentries.toc86.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">snmpdInitFinish</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.TOC85.html"><img border="0" alt="[Prev]" src="icons/prev.gif"></a><a href="snmp.refEntries.TOC87.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="84533"> <i class="i">snmpdInitFinish</i>( ) </a></i></h2></font><h4 class="SH"><a name="84534"> </a>NAME </h4><dl class="margin"><dl class="margin"><dd><a name="84535"><div class="aX"><b class="routine"><i class="routine">snmpdInitFinish</i></b><b>( )</b> - complete the initialization of the agent </div></a></dl></dl><h4 class="SH"><a name="84536"> </a>SYNOPSIS </h4><dl class="margin"><dl class="margin"><dd><pre class="Code"><b><a name="84537">void snmpdInitFinish ( VOIDFUNCPTR pPrivRlse, /* user's privare release routine */ FUNCPTR pSetPduVldt, /* user's set pdu validate routine */ FUNCPTR pPreSet, /* user's pre set routine */ FUNCPTR pPostSet, /* user's post set routine */ FUNCPTR pSetFailed /* user's set failed routine */ )</a></b></pre></dl></dl><h4 class="SH"><a name="84545"> </a>DESCRIPTION </h4><dl class="margin"><dl class="margin"><dd><p class="Body"><a name="84546"> </a>This routine is required to be called by the user to complete the initialization of the SNMP agent after the transport endpoint has been initialized. This routine must be called <i class="i">after the endpoint has been established, since it depends on that endpoint to function correctly.</i></p><dd><p class="Body"><a name="84547"> </a>This routine also installs any user-supplied hooks for customizing the agent. If a hook is not required, a NULL pointer should be passed in that position. The function <b class="routine"><i class="routine">snmpIoTrapSend</i></b><b>( )</b> is invoked by this routine, so any configuration required by that routine should be done prior to calling <b class="routine"><i class="routine">snmpdInitFinish</i></b><b>( )</b>.</p><dd><p class="Body"><a name="84548"> </a>The hook routines are as follows:</p></dl><dl class="margin"><dd><div class="Item"><a name="84549"> </a><i class="i">pPrivRlse</i> </div><dl class="margin"><dd><div class="Indent"><a name="84550"> </a>This routine is used by the agent to free any memory attached to the private field of the SNMP_PKT_T structure. </div><br></dl><dd><div class="Item"><a name="84551"> </a><i class="i">pSetPduVldt</i> </div><dl class="margin"><dd><div class="Indent"><a name="84552"> </a>This routine is called before any processing of a <b>set</b> request has taken place. It can be used to perform global validation of the request, if needed. The return values for this routine must meet the following requirements:</div><br><dd><div class="Indent"><a name="84553"> </a>0 - indicates that the <b>set</b> PDU is valid, and processing should continue.</div><br><dd><div class="Indent"><a name="84554"> </a>1 - indicates that the <b>set</b> PDU is valid, and that this routine has already completed all the required <b>set</b> operations.</div><br><dd><div class="Indent"><a name="84555"> </a>-1 - indicates that the <b>set</b> PDU is invalid and should be rejected. </div><br></dl><dd><div class="Item"><a name="84556"> </a><i class="i">pPreSet</i> </div><dl class="margin"><dd><div class="Indent"><a name="84557"> </a>This routine is called after all <b>testproc</b> operations have completed successfully, but before any <b>setproc</b> operation is begun. Return value requirements are as follows</div><br><dd><div class="Indent"><a name="84558"> </a>0 - indicates that the <b>set</b> PDU is valid, and processing should continue.</div><br><dd><div class="Indent"><a name="84559"> </a>1 - indicates that the <b>set</b> PDU is valid, and that this routine has already completed all the required <b>set</b> operations.</div><br><dd><div class="Indent"><a name="84560"> </a>-1 - indicates that the <b>set</b> PDU is invalid and should be rejected. </div><br></dl><dd><div class="Item"><a name="84561"> </a><i class="i">pPostSet</i> </div><dl class="margin"><dd><div class="Indent"><a name="84562"> </a>This routine is called after all <b>setproc</b> have completed successfully. This routine can be used to free resources allocated during <b>set</b> processing. </div><br></dl><dd><div class="Item"><a name="84563"> </a><i class="i">pSetFailed</i> </div><dl class="margin"><dd><div class="Indent"><a name="84564"> </a>This routine is possibly called under two sets of circumstances: after all <b>testproc</b> operations have returned and some of them have failed, and/or after all <b>undoproc</b> operations have returned and some <b>setproc</b> operations have failed. It can be used to do any required cleanup. </div><br></dl></dl></dl><h4 class="SH"><a name="84565"> </a>RETURNS </h4><dl class="margin"><dl class="margin"><dd><p class="Body"><a name="84566"> </a>N/A </p></dl></dl><h4 class="SH"><a name="84567"> </a>SEE ALSO </h4><dl class="margin"><dl class="margin"><dd><p class="Body"><a name="84568"> </a><b>snmpdLib</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.TOC85.html"><img border="0" alt="[Prev]" src="icons/prev.gif"></a><a href="snmp.refEntries.TOC87.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 + -