David Isaac Wolinsky
unread,Dec 10, 2009, 9:24:44 AM12/10/09Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to aci...@googlegroups.com
As we discussed in the meeting, TaeWoong can have a remote node perform
a query / cache use XmlRpc over BrunetRpc as opposed to using XmlRpc to
the remote node.
The key is the use of ISenders. When using localproxy, the ISender is
the local node, whereas with proxy, the sender can be an AHSender. So
the ideal case would be to initiate a proxy call via:
rpc.proxy(node_addr, 3, expected_result_count, method, args)
From:
[XmlRpcMethod]
public object[] proxy(string node, int ahOptions, int maxResultsToWait,
string method, params object[] args) {
Address target = AddressParser.Parse(node);
AHSender s = new AHSender(_node, target, (ushort)ahOptions);
return this.Proxy(s, maxResultsToWait, method, args);
}
Regards,
David