public void HandleRpc(ISender caller, string method, IList args, object req_state) {
if( method == "Echo" ) {
Echo();
_rpc.SendResult(req_state, new object[]{});
}
else if (method == "EchoVivaldiState" ) {
Hashtable ht = EchoVivaldiState();
_rpc.SendResult(req_state, ht);
}
else if ( method == "ComputePathLatencyTo" ) {
ComputePathLatencyTo( (AHAddress)AddressParser.Parse((string)args[0]), req_state);
}
else {
throw new AdrException(-32601, "No Handler for method: " + method);
}
}