如何在服务器端调用客户端的回调?

时间:2013-11-02 08:57:30

标签: serialization callback rpc messagepack

RPC做这样的事情:

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

但这种方式不灵活,因为我必须在服务器端定义所有功能。我的情况是我想在客户端支持用户定义的回调函数,那么如何在服务器端调用客户端的回调函数呢?

由于

0 个答案:

没有答案