aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework
diff options
context:
space:
mode:
authorJohan Berntsson2008-03-24 01:37:00 +0000
committerJohan Berntsson2008-03-24 01:37:00 +0000
commit39f340e6875c55927fc9dbeb51af2357c7d28c04 (patch)
treeec7bd54fd3f15abca441faa500e4275559779818 /OpenSim/Framework
parentAdded a plugin loader in GridServer (diff)
downloadopensim-SC_OLD-39f340e6875c55927fc9dbeb51af2357c7d28c04.zip
opensim-SC_OLD-39f340e6875c55927fc9dbeb51af2357c7d28c04.tar.gz
opensim-SC_OLD-39f340e6875c55927fc9dbeb51af2357c7d28c04.tar.bz2
opensim-SC_OLD-39f340e6875c55927fc9dbeb51af2357c7d28c04.tar.xz
XmlRpcCommand refactoring
Diffstat (limited to '')
-rw-r--r--OpenSim/Framework/Util.cs13
1 files changed, 13 insertions, 0 deletions
diff --git a/OpenSim/Framework/Util.cs b/OpenSim/Framework/Util.cs
index 6c95c88..a184f89 100644
--- a/OpenSim/Framework/Util.cs
+++ b/OpenSim/Framework/Util.cs
@@ -35,6 +35,7 @@ using System.Security.Cryptography;
35using System.Text; 35using System.Text;
36using libsecondlife; 36using libsecondlife;
37using Nini.Config; 37using Nini.Config;
38using Nwc.XmlRpc;
38 39
39using System.Runtime.Serialization; 40using System.Runtime.Serialization;
40using System.Runtime.Serialization.Formatters.Binary; 41using System.Runtime.Serialization.Formatters.Binary;
@@ -605,5 +606,17 @@ namespace OpenSim.Framework
605 } 606 }
606 return returnstring; 607 return returnstring;
607 } 608 }
609
610 static public XmlRpcResponse XmlRpcCommand(string url, string methodName, params object[] args)
611 {
612 return SendXmlRpcCommand(url, methodName, args);
613 }
614
615 static public XmlRpcResponse SendXmlRpcCommand(string url, string methodName, object[] args)
616 {
617 XmlRpcRequest client = new XmlRpcRequest(methodName, args);
618 return client.Send(url, 6000);
619 }
620
608 } 621 }
609} 622}