Unix RPC programming
Posted
by Abhi
on Stack Overflow
See other posts from Stack Overflow
or by Abhi
Published on 2010-04-11T01:27:12Z
Indexed on
2010/04/11
1:33 UTC
Read the original article
Hit count: 444
Heyy all,
I needed some help with ONC RPC programming.
My task is to create two-tier client-server architecture wherein one main server (something like a directory) keeps a track of level-two servers and acts as a lookup; the level-two servers exposing some trivial functions, and finally, the clients for level-two servers.
The clients ask the directory where a server is located, and then communicate with it. Using RPCGEN, we can create a pair of client-server code; however, the clients in this case need to have stubs for the directory as well as the level-two functions. Being a newbie to RPC, I'm having trouble conceptualizing the way I should code this. How can I call a function from a different server if a client is generated using a different IDL ?
Any pointers would be appreciated :)
Regards,
Abhi
© Stack Overflow or respective owner