andrew@ads.arpa (Andrew Neuschatz) (11/18/86)
I'm trying to figure out a way to do remote procedure calls in C. It seems to me that a process could send a call to another process with identical code via standard pipe, by passing over a pointer to the procedure and any necessary arguments. Since C compilers don't check number or type of parameters, you could probably make a general-use procedure "remote_call" called with remote_call(pipe,funcname,arg1,arg2 .. ) In the other process would be something that gets the function pointer and arguments out of the pipe and calls funcname(arg1,arg2..) (Obviously sending pointers to variables and getting values returned are two potential cans of worms, but let's skip them for now.) This looks like it takes a lot of C smarts; also I just assume not reinvent something that may already exist. Does anybody know of a set of functions that do something like this? Please respond directly to me rather than the info-c board. Thanks Andrew Neuschatz Advanced Decision Systems andrew@ads.ARPA