home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.unix.programmer
- Path: sparky!uunet!gatech!rpi!fitzgb
- From: fitzgb@mml0.meche.rpi.edu (Brian Fitzgerald)
- Subject: Re: Help in unix RPC
- Message-ID: <!wp3ysk@rpi.edu>
- Nntp-Posting-Host: mml0.meche.rpi.edu
- Organization: Rensselaer Polytechnic Institute, Troy, NY
- References: <1993Jan24.174609.16286@dragon.acadiau.ca>
- Date: Tue, 26 Jan 1993 13:57:05 GMT
- Lines: 25
-
- Wing Ho Kwan - Louie writes:
- >Hi,
- >Another question in unix rpc
- >
- >Do anyone knows how many parameters can pass to procedures.
- >Since I find that the rpcgen can only allows me to have one parameter
- >in each server procedure..... (is it quite limited ????!!!!)
- >
- >If you have any suggestions , please let me knows
- >Thanks for advances......
-
- Right. You can pass at most, one parameter.
-
- Same for the return value.
-
- However, this generalizes well, because you can pass (return) a pointer
- to a structure, and the structure can have as much information as
- desired, including other structures, arrays of characters, etc.
-
- For example, see /usr/include/rpcsvc/rstat.x
-
- It was probably done this way in order to simplify the design of the
- supporting rpc and xdr library routines.
-
- Brian
-