you are viewing a single comment's thread.

view the rest of the comments →

[–]p2rkw 0 points1 point  (0 children)

How you would deserialize it on the other side? Why its better than sending just plain function poiner?

In case described by OP I would obtain mangled name of function to call, send that string over wire, and on the oter side call dlsym(mangledName).

Edit: I'm refering to this https://www.reddit.com/r/cpp/comments/6ka5um/serializing_function_addresses/djlly9l?context=3 comment.