There are two programs on one computer. Is it possible to do so:
- Program 1 takes out pointers to 2 of its functions and sends it to another program on a UNIX socket.
- Program 2 receives these pointers and, using a socket, it passes 1 pointer to its function.
- The socket is destroyed and the programs are pinged by exchanging the "Hello program!" together.
- Profit!
Is it possible to do this? The main question: how to perform the function on the pointer and how to pass parameters to it?