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

📄 rpclib.html

📁 Vxworks API操作系统和驱动程序设计API。压缩的HTML文件
💻 HTML
字号:
<html><head><!-- /vobs/wpwr/docs/vxworks/ref/rpcLib.html - generated by refgen from rpcLib.c --> <title> rpcLib </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>rpcLib</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote>  <p><strong>rpcLib</strong> - Remote Procedure Call (RPC) support library </p></blockquote><h4>ROUTINES</h4><blockquote><p><p><b><a href="./rpcLib.html#rpcInit">rpcInit</a>(&nbsp;)</b>  -  initialize the RPC package<br><b><a href="./rpcLib.html#rpcTaskInit">rpcTaskInit</a>(&nbsp;)</b>  -  initialize a task's access to the RPC package<br><p></blockquote><h4>DESCRIPTION</h4><blockquote><p>This library supports Sun Microsystems' Remote Procedure Call (RPC)facility.  RPC provides facilities for implementing distributedclient/server-based architectures.  The underlying communication mechanismcan be completely hidden, permitting applications to be written withoutany reference to network sockets.  The package is structured such thatlower-level routines can optionally be accessed, allowing greater controlof the communication protocols.<p>For more information and a tutorial on RPC, see Sun Microsystems'<i>Remote Procedure Call Programming Guide. </i>For an example of RPC usage, see <b>/target/unsupported/demo/sprites</b>.<p>The RPC facility is enabled when <b>INCLUDE_RPC</b> is defined.<p>VxWorks supports Network File System (NFS), which is builton top of RPC.  If NFS is configured into the VxWorks system,RPC is automatically included as well.<p></blockquote><h4>IMPLEMENTATION</h4><blockquote><p>A task must call <b><a href="./rpcLib.html#rpcTaskInit">rpcTaskInit</a>(&nbsp;)</b> before making any calls to otherroutines in the RPC library.  This routine creates task-specific datastructures required by RPC.  These task-specific data structures areautomatically deleted when the task exits.<p>Because each task has its own RPC context, RPC-related objects (such asSVCXPRTs and CLIENTs) cannot be shared among tasks; objects created by onetask cannot be passed to another for use.  Such additional objects mustbe explicitly deleted (for example, using task deletion hooks).<p></blockquote><h4>INCLUDE FILES</h4><blockquote><p><b>rpc.h</b><p></blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./nfsLib.html#top">nfsLib</a></b>, <b><a href="./nfsDrv.html#top">nfsDrv</a></b>, Sun Microsystems'<i>Remote Procedure Call Programming Guide </i><hr><a name="rpcInit"></a><p align=right><a href="rtnIndex.htm"><i>OS Libraries :  Routines</i></a></p></blockquote><h1>rpcInit(&nbsp;)</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote>  <p><strong>rpcInit(&nbsp;)</strong> - initialize the RPC package</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>STATUS rpcInit (void)</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This routine must be called before any task can use the RPC facility; it spawns the portmap daemon.  It is called automatically if <b>INCLUDE_RPC</b>is defined.<p></blockquote><h4>VXWORKS AE PROTECTION DOMAINS</h4><blockquote><p>Under VxWorks AE, you can call this function from within the kernel protection domain only.  This restriction does not apply under non-AE versions of VxWorks.  <p></blockquote><h4>RETURNS</h4><blockquote><p>OK, or ERROR if the portmap daemon cannot be spawned.</blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./rpcLib.html#top">rpcLib</a></b><hr><a name="rpcTaskInit"></a><p align=right><a href="rtnIndex.htm"><i>OS Libraries :  Routines</i></a></p></blockquote><h1>rpcTaskInit(&nbsp;)</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote>  <p><strong>rpcTaskInit(&nbsp;)</strong> - initialize a task's access to the RPC package</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>STATUS rpcTaskInit (void)</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This routine must be called by a task before it makes any calls toother routines in the RPC package.<p></blockquote><h4>VXWORKS AE PROTECTION DOMAINS</h4><blockquote><p>Under VxWorks AE, you can call this function from within the kernel protection domain only.  This restriction does not apply under non-AE versions of VxWorks.  <p></blockquote><h4>RETURNS</h4><blockquote><p>OK, or ERROR if there is insufficient memory or the routine isunable to add a task delete hook.</blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./rpcLib.html#top">rpcLib</a></b></body></html>

⌨️ 快捷键说明

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