First, create an interface definition file, written in SIDL, and run the stub-generator on it to produce an include-file, a client C file, and a server C file.
Assume you're implementing the foo service. After running foo.x through the stub generator, you'll have three files, foo_rpc.h, foo_clnt.c, and foo_serv.c.
Your client program should #include foo_rpc.h. You should compile foo_clnt.c into foo_clnt.o, and link foo_clnt.o with your client program and with the SRPC runtime library, /u/shrimp/lib/libsrpc.a. When compiling, use the -I/u/shrimp/include switch to include the SRPC header files.
remote_bar should take the same arguments, with the same types, that you declared in your interface definition file foo.x. There is an additional first argument which should be the binding through which you're talking to the server.