跳到主要内容

remote_post

向一个资源RPC地址发起POST(非阻塞)调用

等价于:RPC_ADDRESS(address).POST(method, ...)

特别的,当methode == "call"时,执行的是"call"之后第一个参数所对应的对象的方法

例如:address.POST("call", RpcServiceD, "test_add2", 1, 2)

实际执行的是RpcServiceD=>test_add2(1, 2, address对应的对象)

声明

void remote_post(RpcAddress addr_dict, string method, array args)

参数

参数名描述
address资源RPC地址
method方法名
args方法参数

返回值

使用方式

返回文档