Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 401a76d

Browse files
committed
Patch #469517: Info about rpcgen compilers.
1 parent 875eeaa commit 401a76d

2 files changed

Lines changed: 12 additions & 5 deletions

File tree

Demo/rpc/README

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,9 @@ Other clients are tested similarly.
2323

2424
For hostname, use e.g. wuarchive.wustl.edu or gatekeeper.dec.com (two
2525
hosts that are known to export NFS filesystems with little restrictions).
26+
27+
There are now two different RPC compilers:
28+
29+
1) Wim Lewis rpcgen.py found on http://www.omnigroup.com/~wiml/soft/stale-index.html#python.
30+
31+
2) Peter �strands rpcgen.py, which is part of "pynfs" (http://www.cendio.se/~peter/pynfs/).

Demo/rpc/mountclient.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
# Mount RPC client -- RFC 1094 (NFS), Appendix A
22

33
# This module demonstrates how to write your own RPC client in Python.
4-
# Since there is no RPC compiler for Python (yet), you must first
5-
# create classes derived from Packer and Unpacker to handle the data
6-
# types for the server you want to interface to. You then write the
7-
# client class. If you want to support both the TCP and the UDP
8-
# version of a protocol, use multiple inheritance as shown below.
4+
# When this example was written, there was no RPC compiler for
5+
# Python. Without such a compiler, you must first create classes
6+
# derived from Packer and Unpacker to handle the data types for the
7+
# server you want to interface to. You then write the client class.
8+
# If you want to support both the TCP and the UDP version of a
9+
# protocol, use multiple inheritance as shown below.
910

1011

1112
import rpc

0 commit comments

Comments
 (0)