http://docs.sun.com/app/docs/doc/816-1435/6m7rrfn7k?a=view
http://netbula.com/oncrpc/rpcgen.html
http://www.cis.nctu.edu.tw/~is82108/net/ch22_4.html
http://technet.microsoft.com/en-us/library/cc738291(WS.10).aspx
http://en.wikipedia.org/wiki/Remote_procedure_call
You need to create msg.x for rpcgen to generate stub for you. And you need to implement remote procedure in server side. Then you can call the procedure in client side.
After you create above file, compile them as follows:
$ rpcgen msg.x
$ cc rprintmsg.c msg_clnt.c -o rprintmsg -lnsl
$ cc msg_proc.c msg_svc.c -o msg_server -lnsl
[Note] Replace printmessage_1 to printmessage_1_svc in msg_proc.c
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment