Subj : Function pointers in shm shared memory ? To : comp.programming.threads From : CM Date : Fri Apr 29 2005 02:01 pm Hello all, In the process of seekeing the most effective clientserver communication for a personal project i stumble about an idea. under linux 2.6 Is it possible to share a memory segment which would contain a block of function that call inside the server process. the client after obtaining the shared memory segment would just have to call a function in shared segment to actually call a function of the server to clarify: Server: Fct1() { // Some locking for multiple client possibility // Do the actual work // Unlocking } shared segment: BridgeFct1() { Fct1(); // Call the actual server function } Client: main() { fct = GetShared segment // Cast fct in function pointer BridgeFct(); // Call the function in shared segment wich then will call working function in server } Any thought about this mechanism ? Thanks .