diff options
author | Johan Berntsson | 2008-03-24 01:37:00 +0000 |
---|---|---|
committer | Johan Berntsson | 2008-03-24 01:37:00 +0000 |
commit | 39f340e6875c55927fc9dbeb51af2357c7d28c04 (patch) | |
tree | ec7bd54fd3f15abca441faa500e4275559779818 /OpenSim/Framework | |
parent | Added a plugin loader in GridServer (diff) | |
download | opensim-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.cs | 13 |
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; | |||
35 | using System.Text; | 35 | using System.Text; |
36 | using libsecondlife; | 36 | using libsecondlife; |
37 | using Nini.Config; | 37 | using Nini.Config; |
38 | using Nwc.XmlRpc; | ||
38 | 39 | ||
39 | using System.Runtime.Serialization; | 40 | using System.Runtime.Serialization; |
40 | using System.Runtime.Serialization.Formatters.Binary; | 41 | using 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 | } |