Path: utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!tph From: tph@cs.utexas.edu (Pow-Hwee Tan) Newsgroups: comp.unix.questions Subject: RPC programming Message-ID: <8008@cs.utexas.edu> Date: 27 Feb 90 01:56:16 GMT Distribution: comp.unix.questions, comp.protocols.nfs Organization: U. Texas CS Dept., Austin, Texas Lines: 22 Howdy! I have just started doing some NFS programming using RPC and XDR, and have the following questions which I hope some of you can enlighten me. 1. I am using the intermediate RPC layer of function calls as described in Sun's documenation. The two functions calls I used are callprc and registerrpc. Both of these functions require a program number as parameter. As I understand from the documentation, I can use the numbers in the range 0x20000000 - 0x3fffffff. Am I right? Or do I need to make some kind of call to find out what number I should use? 2. The XDR serializing/deserializing routines do not explicitly free the memory allocated. How can I free them myself? Thanks in advance for any help. --- P.H. Tan tph@cs.utexas.edu