kousalya
June 7th, 2007, 02:03 AM
Hi
I want to know how RPC can be done
across windows and Unix/Linux. I wanted to get clarified this one with simple example which I am trying to write. An example I tried out in Linux and succeeded.
My example contains simple interface definition, as
rdict.x
-----
program RDICTPROG{
version RDICTVER{
int init(void) =1;
int insertw(string) =2;
int deletew(string) =3;
int lookup(string) =4;
} =1;
} = 0x3009044;
we know very well that this idl file would be compiled using
rpcgen in linux to create all server and client stubs.
>rpcgen -a -M rdict.x
after this, I defined the functions which i specified in my interface file(functions has been made to insert, delete, and search for given word in an array-dictionary).
Everything is fine and client/server communication is happening well too.
Here, I want to make the server code as it is and the client for the server to be written for windows. It raises some questions in me. They are,
1) The client/server stubs are created in Linux/Unix using rpcgen while midl is used in windows. In this case how the compatibility will be?
2) Even if any third-party tool is used to resolve the first case, how the program and version identification would be as the way of program/version identification is different in both the OS?
I need answer for them and want to study more about this issue. Get me some links related to this issue.
I want to know how RPC can be done
across windows and Unix/Linux. I wanted to get clarified this one with simple example which I am trying to write. An example I tried out in Linux and succeeded.
My example contains simple interface definition, as
rdict.x
-----
program RDICTPROG{
version RDICTVER{
int init(void) =1;
int insertw(string) =2;
int deletew(string) =3;
int lookup(string) =4;
} =1;
} = 0x3009044;
we know very well that this idl file would be compiled using
rpcgen in linux to create all server and client stubs.
>rpcgen -a -M rdict.x
after this, I defined the functions which i specified in my interface file(functions has been made to insert, delete, and search for given word in an array-dictionary).
Everything is fine and client/server communication is happening well too.
Here, I want to make the server code as it is and the client for the server to be written for windows. It raises some questions in me. They are,
1) The client/server stubs are created in Linux/Unix using rpcgen while midl is used in windows. In this case how the compatibility will be?
2) Even if any third-party tool is used to resolve the first case, how the program and version identification would be as the way of program/version identification is different in both the OS?
I need answer for them and want to study more about this issue. Get me some links related to this issue.