1:10 AM Remote procedure call mechanism |
RPC package has an RPC compiler (rpcgen) that automatically generates the client and server stubs. RPC package uses XDR (eXternal Data Representation) to represent data sent between client and server stubs. Remote Date ExampleFrom Stevens Unix Networking book. Running rpcgen msg.x generates msg.h, msg_clnt.c andmsge_svc.c. The header file is included with both client and server. The respective C source files are linked with client and server code. Get all the file in this ZIP file Compiling and running the program Prompt>lsmsg.x msg_proc.c rprintmsg.cPrompt>rpcgen msg.x Prompt>lsmsg.h msg_clnt.c msg_svc.cmsg.x msg_proc.c rprintmsg.c Prompt>cc -o msg_server msg_proc.c msg_svc.cmsg_proc.c: msg_svc.c:Prompt>cc -o rprintmsg rprintmsg.c msg_clnt. crprintmsg.c: msg_clnt.c:Prompt>./msg_server&[1] 23501Prompt>./rprintmsg shankar "Hello shankar"Hello shankar! Message delivered to shankar!Prompt>exit |
|
|
Related blogs
You may also like to see:
| [2014-01-08] | [Technical Solution] |
How to shutdown a computer using your Mobile | |
| [2014-02-13] | [Technical Solution] |
ISO/OSI Network Model | |
| [2014-12-28] | [Technical Solution] |
| | |
| [2014-12-28] | [Technical Solution] |
| | |
| [2014-09-30] | [Technical Solution] |
How to give a global url to an HTML page? How to create a website with custom url? | |
| Total comments: 0 | |
How to shutdown a computer using your Mobile
ISO/OSI Network Model
How to give a global url to an HTML page? How to create a website with custom url?