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

📄 ppphooklib.html

📁 Vxworks API操作系统和驱动程序设计API。压缩的HTML文件
💻 HTML
字号:
<html><head><!-- /vobs/wpwr/docs/vxworks/ref/pppHookLib.html - generated by refgen from pppHookLib.c --> <title> pppHookLib </title></head><body bgcolor="#FFFFFF"> <hr><a name="top"></a><p align=right><a href="libIndex.htm"><i>VxWorks API Reference :  OS Libraries</i></a></p></blockquote><h1>pppHookLib</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote>  <p><strong>pppHookLib</strong> - PPP hook library </p></blockquote><h4>ROUTINES</h4><blockquote><p><p><b><a href="./pppHookLib.html#pppHookAdd">pppHookAdd</a>(&nbsp;)</b>  -  add a hook routine on a unit basis<br><b><a href="./pppHookLib.html#pppHookDelete">pppHookDelete</a>(&nbsp;)</b>  -  delete a hook routine on a unit basis<br><p></blockquote><h4>DESCRIPTION</h4><blockquote><p>This library provides routines to add and delete connect and disconnectroutines. The connect routine, added on a unit basis, is called before the initial phase of link option negotiation. The disconnect routine, added ona unit basis is called before the PPP connection is closed. These connect and disconnect routines can be used to hook up additional software.If either connect or disconnect hook returns ERROR, the connection is terminated immediately.<p>This library is automatically linked into the VxWorks system image whenthe configuration macro <b>INCLUDE_PPP</b> is defined.<p></blockquote><h4>INCLUDE FILES</h4><blockquote><p><b>pppLib.h</b><p></blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./pppLib.html#top">pppLib</a></b>,<i>VxWorks Programmer's Guide: Network </i><hr><a name="pppHookAdd"></a><p align=right><a href="rtnIndex.htm"><i>OS Libraries :  Routines</i></a></p></blockquote><h1>pppHookAdd(&nbsp;)</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote>  <p><strong>pppHookAdd(&nbsp;)</strong> - add a hook routine on a unit basis</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>STATUS pppHookAdd    (    int     unit,             /* unit number */    FUNCPTR hookRtn,          /* hook routine */    int     hookType          /* hook type connect/disconnect */    )</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This routine adds a hook to the Point-to-Point Protocol (PPP) channel. The parameters to this routine specify the unit number (<i>unit</i>) of thePPP interface, the hook routine (<i>hookRtn</i>), and the type of hookspecifying either a connect hook or a disconnect hook (<i>hookType</i>).The following hook types can be specified for the <i>hookType</i> parameter:<dl><dt><b>PPP_HOOK_CONNECT</b><dd>Specify a connect hook.<dt><b>PPP_HOOK_DISCONNECT</b><dd>Specify a disconnect hook.<br> </dl></blockquote><h4>RETURNS</h4><blockquote><p>OK, or ERROR if the hook cannot be added to the unit.<p></blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./pppHookLib.html#top">pppHookLib</a></b>, <b><a href="./pppHookLib.html#pppHookDelete">pppHookDelete</a>(&nbsp;)</b><hr><a name="pppHookDelete"></a><p align=right><a href="rtnIndex.htm"><i>OS Libraries :  Routines</i></a></p></blockquote><h1>pppHookDelete(&nbsp;)</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote>  <p><strong>pppHookDelete(&nbsp;)</strong> - delete a hook routine on a unit basis</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>STATUS pppHookDelete    (    int unit,                 /* unit number */    int hookType              /* hook type connect/disconnect */    )</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This routine deletes a hook added previously to the Point-to-Point Protocol (PPP) channel. The parameters to this routine specify the unit number (<i>unit</i>) of the PPP interface and the type of hook specifying either a connect hook or a disconnect hook (<i>hookType</i>).The following hook types can be specified for the <i>hookType</i> parameter:<dl><dt><b>PPP_HOOK_CONNECT</b><dd>Specify a connect hook.<dt><b>PPP_HOOK_DISCONNECT</b><dd>Specify a disconnect hook.<br> </dl></blockquote><h4>RETURNS</h4><blockquote><p>OK, or ERROR if the hook cannot be deleted for the unit.<p></blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./pppHookLib.html#top">pppHookLib</a></b>, <b><a href="./pppHookLib.html#pppHookAdd">pppHookAdd</a>(&nbsp;)</b></body></html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -