I have a server and have a client written in C. I try to load a shared library in the server, and then the library function can change the library without the pointer to the client so that I have to compile the client.
Every process has its own separate memory space, I wonder if it is possible to load a shared library on shared memory, function points and map to shared memory on the client, and then load the client to the server. Execute the Library Code.
Definitions are shared through the shared library, so the same for the code segment of the two process libraries Will use physical memory. Therefore, instead of creating some playful plans, you can only name the library and the function with the server and the client will get the work address using the Please note that in this case there will be two copies of the data segment (if there are some global or static variables in the library), for example, if the server has some Dluppen () + dlsym () . >. stable variable library function Sets it inside, then its value will not change for the client.
Comments
Post a Comment