Search code examples
clinuxrpcxdr

Using RPC on same host without using XDr


I'm toying with the idea of using RPC ( remote procedure calls ) on Linux to communicate between two processes on the SAME server. Therefore the data format of multi-byte variables will be the same and really won't need to be transformed using XDR. Is it possible to use RPC without XDR on linux? If so, do any examples of this exist?

If I want a function declared that takes 3 shorts as arguments without using XDR Would I declare the function like this?

program MESSAGEPROG {
    version MESSAGEVERS {
       int PRINTMESSAGE(short, short, short) = 1;
    } = 1;
} = 99;

Thank you.


Solution

  • Yes, that is possible. See the first example in the following rpcgen guide: http://docs.freebsd.org/44doc/psd/22.rpcgen/paper.pdf