RPCNotes - Steps to write Remote Procedure Call (RPC)...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
Steps to write Remote Procedure Call (RPC) Program on cslinux1.comp.hkbu.edu.hk 0. You are assigned a unique number for your RPC programming, if your login ID is d5049394, your RPC program ID will be 0x35049394. 1. Write your own RPC specification file “remote.x”. 2. Use rpcgen to generate the files you need (i.e. remote.h, remote_svc.c, and remote_clnt.c) %rpcgen remote.x 3. Use rpcgen to generate sample server program %rpcgen –Ss remote.x > remote_server.c 4. Use rpcgen to generate sample client program %rpcgen –Sc remote.x > remote_users.c 5. Modify your sample server and sample client programs 6. Use gcc to compile your server program (remote_server.c) %gcc –o remote_server remote_server.c remote_svc.c –lnsl 7. Use gcc to compile your client program (remote_users.c) %gcc –o remote_users remote_users.c remote_clnt.c –lnsl 8. Login to a machine (e.g. cslinux1) to run your server program cslinux1%remote_server or to put the server to run in the background
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 3

RPCNotes - Steps to write Remote Procedure Call (RPC)...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online