How to invoke client's callback at server end?

和自甴很熟 提交于 2019-12-13 07:27:48

问题


RPC do things like this:

server define a function foo_max(para)
client call foo_max, send 'max+para'
server get 'max' and call foo_max(para)
server send return val
client get result and return

But this way is not flexible because I must define all functions at server end. My case is that I want to support user-defined callback function at client end, so how can I call the client's callback funciton at server end?

Thanks

来源:https://stackoverflow.com/questions/19740380/how-to-invoke-clients-callback-at-server-end

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!