remote_get
向一个资源RPC地址发起GET(阻塞)调用
等价于:RPC_ADDRESS(address).GET(method, ...)
特别的,当methode == "call"时,执行的是"call"之后第一个参数所对应的对象的方法
例如:address.GET("call", RpcServiceD, "test_add2", 1, 2)
实际执行的是RpcServiceD=>test_add2(1, 2, address对应的对象)
声明
mixed remote_get(string address, string method, array args)
参数
参数名 | 描述 |
---|---|
address | 资源RPC地址 |
method | 方法名 |
args | 方法参数 |
返回值
方法的返回值