[comp.sys.sun] Sun RPC programming question

mike%ap542@ztivax.siemens.com (Mike Hoffmann) (06/05/91)

Greetings!

I am trying to port some software using Sun's RPC.

The code is using the clnt_create call. This call is not available
on my machine. The call looks like this:

cl = clnt_create(server,MESSAGEPROG,MESSAGEVERS,"tcp");                 

What our machine has is this:

clnttcp_create(raddr, prog, vers, sockp, sendsz, recvsz)
     struct sockaddr_in *raddr;
     u_long prog;
     u_long version;
     register int *sockp;
     u_int sendsz;
     u_int recvsz;

I found this in /usr/include/rpc/clnt.h

I am not familiar with RPC programming, so can someone help me write 
a clnt_create routine using what I have? I don't even have Sun docs.

Replies per e-mail please, I don't read these groups a lot.

Thanks
Mike
-- 
Mike Hoffmann, Siemens-Nixdorf AG, SNI AP 712  
UUCP: mike@ap542.uucp | INTERNET: mike%ap542@ztivax.siemens.com
Berlin:1871-1918 Wilhelminian Empire,1933-1945 Third Reich,1945-1990 SED Regime.
Bonn: first successful democracy in german history. Let it stay the Capital!