home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 2 / Apprentice-Release2.iso / Tools / Languages / Python 1.1 / Demo / rpc / mountclient.py < prev    next >
Encoding:
Text File  |  1993-12-17  |  5.8 KB  |  12 lines  |  [TEXT/R*ch]

  1. # Mount RPC client -- RFC 1094 (NFS), Appendix A
  2.  
  3. # 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.
  9.  
  10.  
  11. import rpc
  12. from rpc import Packer, Unpacker, TCPClient