📄 rpclib.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.html"><i>VxWorks Reference Manual : 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><i><a href="./rpcLib.html#rpcInit">rpcInit</a></i>( )</b> - initialize the RPC package<br><b><i><a href="./rpcLib.html#rpcTaskInit">rpcTaskInit</a></i>( )</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 the configuration macro <b>INCLUDE_RPC</b> isdefined.<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><i><a href="./rpcLib.html#rpcTaskInit">rpcTaskInit</a></i>( )</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="./rpcLib.html#top">rpcLib</a></b>, <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.html"><i>Libraries : Routines</i></a></p></blockquote><h1><i>rpcInit</i>( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong><i>rpcInit</i>( )</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 theconfiguration macro <b>INCLUDE_RPC</b> is defined.<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.html"><i>Libraries : Routines</i></a></p></blockquote><h1><i>rpcTaskInit</i>( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong><i>rpcTaskInit</i>( )</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>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 + -