aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework/General
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Framework/General')
-rw-r--r--OpenSim/Framework/General/OpenSim.Framework.csproj61
-rw-r--r--OpenSim/Framework/General/OpenSim.Framework.dll.build39
-rw-r--r--OpenSim/Framework/General/SimProfile.cs119
3 files changed, 48 insertions, 171 deletions
diff --git a/OpenSim/Framework/General/OpenSim.Framework.csproj b/OpenSim/Framework/General/OpenSim.Framework.csproj
index a577ea3..4a72db0 100644
--- a/OpenSim/Framework/General/OpenSim.Framework.csproj
+++ b/OpenSim/Framework/General/OpenSim.Framework.csproj
@@ -97,103 +97,100 @@
97 <Compile Include="BlockingQueue.cs"> 97 <Compile Include="BlockingQueue.cs">
98 <SubType>Code</SubType> 98 <SubType>Code</SubType>
99 </Compile> 99 </Compile>
100 <Compile Include="IRegionCommsListener.cs"> 100 <Compile Include="Util.cs">
101 <SubType>Code</SubType> 101 <SubType>Code</SubType>
102 </Compile> 102 </Compile>
103 <Compile Include="LoginService.cs"> 103 <Compile Include="UserProfile.cs">
104 <SubType>Code</SubType> 104 <SubType>Code</SubType>
105 </Compile> 105 </Compile>
106 <Compile Include="RegionCommsListener.cs"> 106 <Compile Include="IRegionCommsListener.cs">
107 <SubType>Code</SubType> 107 <SubType>Code</SubType>
108 </Compile> 108 </Compile>
109 <Compile Include="Remoting.cs"> 109 <Compile Include="Remoting.cs">
110 <SubType>Code</SubType> 110 <SubType>Code</SubType>
111 </Compile> 111 </Compile>
112 <Compile Include="SimProfile.cs"> 112 <Compile Include="RegionCommsListener.cs">
113 <SubType>Code</SubType>
114 </Compile>
115 <Compile Include="UserProfile.cs">
116 <SubType>Code</SubType> 113 <SubType>Code</SubType>
117 </Compile> 114 </Compile>
118 <Compile Include="Util.cs"> 115 <Compile Include="LoginService.cs">
119 <SubType>Code</SubType> 116 <SubType>Code</SubType>
120 </Compile> 117 </Compile>
121 <Compile Include="Interfaces\AuthenticateResponse.cs"> 118 <Compile Include="Interfaces\AuthenticateResponse.cs">
122 <SubType>Code</SubType> 119 <SubType>Code</SubType>
123 </Compile> 120 </Compile>
124 <Compile Include="Interfaces\IAssetServer.cs"> 121 <Compile Include="Interfaces\IUserServer.cs">
125 <SubType>Code</SubType> 122 <SubType>Code</SubType>
126 </Compile> 123 </Compile>
127 <Compile Include="Interfaces\IClientAPI.cs"> 124 <Compile Include="Interfaces\IAssetServer.cs">
128 <SubType>Code</SubType> 125 <SubType>Code</SubType>
129 </Compile> 126 </Compile>
130 <Compile Include="Interfaces\ILocalStorage.cs"> 127 <Compile Include="Interfaces\IWorld.cs">
131 <SubType>Code</SubType> 128 <SubType>Code</SubType>
132 </Compile> 129 </Compile>
133 <Compile Include="Interfaces\IUserServer.cs"> 130 <Compile Include="Interfaces\IClientAPI.cs">
134 <SubType>Code</SubType> 131 <SubType>Code</SubType>
135 </Compile> 132 </Compile>
136 <Compile Include="Interfaces\IWorld.cs"> 133 <Compile Include="Interfaces\ILocalStorage.cs">
137 <SubType>Code</SubType> 134 <SubType>Code</SubType>
138 </Compile> 135 </Compile>
139 <Compile Include="Interfaces\Config\IGenericConfig.cs"> 136 <Compile Include="Interfaces\Config\IGenericConfig.cs">
140 <SubType>Code</SubType> 137 <SubType>Code</SubType>
141 </Compile> 138 </Compile>
142 <Compile Include="Interfaces\Config\IGridConfig.cs"> 139 <Compile Include="Interfaces\Config\IUserConfig.cs">
143 <SubType>Code</SubType> 140 <SubType>Code</SubType>
144 </Compile> 141 </Compile>
145 <Compile Include="Interfaces\Config\IUserConfig.cs"> 142 <Compile Include="Interfaces\Config\IGridConfig.cs">
146 <SubType>Code</SubType> 143 <SubType>Code</SubType>
147 </Compile> 144 </Compile>
148 <Compile Include="Properties\AssemblyInfo.cs"> 145 <Compile Include="Types\MapBlockData.cs">
149 <SubType>Code</SubType> 146 <SubType>Code</SubType>
150 </Compile> 147 </Compile>
151 <Compile Include="Types\AgentCiruitData.cs"> 148 <Compile Include="Types\PrimitiveBaseShape.cs">
152 <SubType>Code</SubType> 149 <SubType>Code</SubType>
153 </Compile> 150 </Compile>
154 <Compile Include="Types\AgentWearable.cs"> 151 <Compile Include="Types\AssetLandmark.cs">
155 <SubType>Code</SubType> 152 <SubType>Code</SubType>
156 </Compile> 153 </Compile>
157 <Compile Include="Types\AssetBase.cs"> 154 <Compile Include="Types\NeighbourInfo.cs">
158 <SubType>Code</SubType> 155 <SubType>Code</SubType>
159 </Compile> 156 </Compile>
160 <Compile Include="Types\AssetLandmark.cs"> 157 <Compile Include="Types\RegionInfo.cs">
161 <SubType>Code</SubType> 158 <SubType>Code</SubType>
162 </Compile> 159 </Compile>
163 <Compile Include="Types\AssetStorage.cs"> 160 <Compile Include="Types\RegionHandle.cs">
164 <SubType>Code</SubType> 161 <SubType>Code</SubType>
165 </Compile> 162 </Compile>
166 <Compile Include="Types\EstateSettings.cs"> 163 <Compile Include="Types\ParcelData.cs">
167 <SubType>Code</SubType> 164 <SubType>Code</SubType>
168 </Compile> 165 </Compile>
169 <Compile Include="Types\Login.cs"> 166 <Compile Include="Types\PrimData.cs">
170 <SubType>Code</SubType> 167 <SubType>Code</SubType>
171 </Compile> 168 </Compile>
172 <Compile Include="Types\MapBlockData.cs"> 169 <Compile Include="Types\AgentWearable.cs">
173 <SubType>Code</SubType> 170 <SubType>Code</SubType>
174 </Compile> 171 </Compile>
175 <Compile Include="Types\NeighbourInfo.cs"> 172 <Compile Include="Types\AssetStorage.cs">
176 <SubType>Code</SubType> 173 <SubType>Code</SubType>
177 </Compile> 174 </Compile>
178 <Compile Include="Types\NetworkServersInfo.cs"> 175 <Compile Include="Types\UUID.cs">
179 <SubType>Code</SubType> 176 <SubType>Code</SubType>
180 </Compile> 177 </Compile>
181 <Compile Include="Types\ParcelData.cs"> 178 <Compile Include="Types\EstateSettings.cs">
182 <SubType>Code</SubType> 179 <SubType>Code</SubType>
183 </Compile> 180 </Compile>
184 <Compile Include="Types\PrimData.cs"> 181 <Compile Include="Types\Login.cs">
185 <SubType>Code</SubType> 182 <SubType>Code</SubType>
186 </Compile> 183 </Compile>
187 <Compile Include="Types\PrimitiveBaseShape.cs"> 184 <Compile Include="Types\AgentCiruitData.cs">
188 <SubType>Code</SubType> 185 <SubType>Code</SubType>
189 </Compile> 186 </Compile>
190 <Compile Include="Types\RegionHandle.cs"> 187 <Compile Include="Types\AssetBase.cs">
191 <SubType>Code</SubType> 188 <SubType>Code</SubType>
192 </Compile> 189 </Compile>
193 <Compile Include="Types\RegionInfo.cs"> 190 <Compile Include="Types\NetworkServersInfo.cs">
194 <SubType>Code</SubType> 191 <SubType>Code</SubType>
195 </Compile> 192 </Compile>
196 <Compile Include="Types\UUID.cs"> 193 <Compile Include="Properties\AssemblyInfo.cs">
197 <SubType>Code</SubType> 194 <SubType>Code</SubType>
198 </Compile> 195 </Compile>
199 </ItemGroup> 196 </ItemGroup>
diff --git a/OpenSim/Framework/General/OpenSim.Framework.dll.build b/OpenSim/Framework/General/OpenSim.Framework.dll.build
index 10fafbf..9fb35bc 100644
--- a/OpenSim/Framework/General/OpenSim.Framework.dll.build
+++ b/OpenSim/Framework/General/OpenSim.Framework.dll.build
@@ -14,39 +14,38 @@
14 <include name="AgentInventory.cs" /> 14 <include name="AgentInventory.cs" />
15 <include name="AuthenticateSessionBase.cs" /> 15 <include name="AuthenticateSessionBase.cs" />
16 <include name="BlockingQueue.cs" /> 16 <include name="BlockingQueue.cs" />
17 <include name="Util.cs" />
18 <include name="UserProfile.cs" />
17 <include name="IRegionCommsListener.cs" /> 19 <include name="IRegionCommsListener.cs" />
18 <include name="LoginService.cs" />
19 <include name="RegionCommsListener.cs" />
20 <include name="Remoting.cs" /> 20 <include name="Remoting.cs" />
21 <include name="SimProfile.cs" /> 21 <include name="RegionCommsListener.cs" />
22 <include name="UserProfile.cs" /> 22 <include name="LoginService.cs" />
23 <include name="Util.cs" />
24 <include name="Interfaces/AuthenticateResponse.cs" /> 23 <include name="Interfaces/AuthenticateResponse.cs" />
24 <include name="Interfaces/IUserServer.cs" />
25 <include name="Interfaces/IAssetServer.cs" /> 25 <include name="Interfaces/IAssetServer.cs" />
26 <include name="Interfaces/IWorld.cs" />
26 <include name="Interfaces/IClientAPI.cs" /> 27 <include name="Interfaces/IClientAPI.cs" />
27 <include name="Interfaces/ILocalStorage.cs" /> 28 <include name="Interfaces/ILocalStorage.cs" />
28 <include name="Interfaces/IUserServer.cs" />
29 <include name="Interfaces/IWorld.cs" />
30 <include name="Interfaces/Config/IGenericConfig.cs" /> 29 <include name="Interfaces/Config/IGenericConfig.cs" />
31 <include name="Interfaces/Config/IGridConfig.cs" />
32 <include name="Interfaces/Config/IUserConfig.cs" /> 30 <include name="Interfaces/Config/IUserConfig.cs" />
33 <include name="Properties/AssemblyInfo.cs" /> 31 <include name="Interfaces/Config/IGridConfig.cs" />
34 <include name="Types/AgentCiruitData.cs" />
35 <include name="Types/AgentWearable.cs" />
36 <include name="Types/AssetBase.cs" />
37 <include name="Types/AssetLandmark.cs" />
38 <include name="Types/AssetStorage.cs" />
39 <include name="Types/EstateSettings.cs" />
40 <include name="Types/Login.cs" />
41 <include name="Types/MapBlockData.cs" /> 32 <include name="Types/MapBlockData.cs" />
33 <include name="Types/PrimitiveBaseShape.cs" />
34 <include name="Types/AssetLandmark.cs" />
42 <include name="Types/NeighbourInfo.cs" /> 35 <include name="Types/NeighbourInfo.cs" />
43 <include name="Types/NetworkServersInfo.cs" /> 36 <include name="Types/RegionInfo.cs" />
37 <include name="Types/RegionHandle.cs" />
44 <include name="Types/ParcelData.cs" /> 38 <include name="Types/ParcelData.cs" />
45 <include name="Types/PrimData.cs" /> 39 <include name="Types/PrimData.cs" />
46 <include name="Types/PrimitiveBaseShape.cs" /> 40 <include name="Types/AgentWearable.cs" />
47 <include name="Types/RegionHandle.cs" /> 41 <include name="Types/AssetStorage.cs" />
48 <include name="Types/RegionInfo.cs" />
49 <include name="Types/UUID.cs" /> 42 <include name="Types/UUID.cs" />
43 <include name="Types/EstateSettings.cs" />
44 <include name="Types/Login.cs" />
45 <include name="Types/AgentCiruitData.cs" />
46 <include name="Types/AssetBase.cs" />
47 <include name="Types/NetworkServersInfo.cs" />
48 <include name="Properties/AssemblyInfo.cs" />
50 </sources> 49 </sources>
51 <references basedir="${project::get-base-directory()}"> 50 <references basedir="${project::get-base-directory()}">
52 <lib> 51 <lib>
diff --git a/OpenSim/Framework/General/SimProfile.cs b/OpenSim/Framework/General/SimProfile.cs
deleted file mode 100644
index 47f1af3..0000000
--- a/OpenSim/Framework/General/SimProfile.cs
+++ /dev/null
@@ -1,119 +0,0 @@
1/*
2* Copyright (c) Contributors, http://www.openmetaverse.org/
3* See CONTRIBUTORS.TXT for a full list of copyright holders.
4*
5* Redistribution and use in source and binary forms, with or without
6* modification, are permitted provided that the following conditions are met:
7* * Redistributions of source code must retain the above copyright
8* notice, this list of conditions and the following disclaimer.
9* * Redistributions in binary form must reproduce the above copyright
10* notice, this list of conditions and the following disclaimer in the
11* documentation and/or other materials provided with the distribution.
12* * Neither the name of the OpenSim Project nor the
13* names of its contributors may be used to endorse or promote products
14* derived from this software without specific prior written permission.
15*
16* THIS SOFTWARE IS PROVIDED BY THE DEVELOPERS ``AS IS AND ANY
17* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
18* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
19* DISCLAIMED. IN NO EVENT SHALL THE CONTRIBUTORS BE LIABLE FOR ANY
20* DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
21* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
22* LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
23* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
25* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26*
27*/
28using System;
29using System.Collections;
30using libsecondlife;
31using Nwc.XmlRpc;
32
33namespace OpenSim.Framework.Sims
34{
35 public class SimProfile
36 {
37 public LLUUID UUID;
38 public ulong regionhandle;
39 public string regionname;
40 public string sim_ip;
41 public uint sim_port;
42 public string caps_url;
43 public uint RegionLocX;
44 public uint RegionLocY;
45 public string sendkey;
46 public string recvkey;
47 public bool online;
48
49 public SimProfile LoadFromGrid(ulong region_handle, string GridURL, string SendKey, string RecvKey)
50 {
51 try
52 {
53 Hashtable GridReqParams = new Hashtable();
54 GridReqParams["region_handle"] = region_handle.ToString();
55 GridReqParams["authkey"] = SendKey;
56 ArrayList SendParams = new ArrayList();
57 SendParams.Add(GridReqParams);
58 XmlRpcRequest GridReq = new XmlRpcRequest("simulator_login", SendParams);
59
60 XmlRpcResponse GridResp = GridReq.Send(GridURL, 3000);
61
62 Hashtable RespData = (Hashtable)GridResp.Value;
63 this.UUID = new LLUUID((string)RespData["UUID"]);
64 this.regionhandle = Helpers.UIntsToLong(((uint)Convert.ToUInt32(RespData["region_locx"]) * 256), ((uint)Convert.ToUInt32(RespData["region_locy"]) * 256));
65 this.regionname = (string)RespData["regionname"];
66 this.sim_ip = (string)RespData["sim_ip"];
67 this.sim_port = (uint)Convert.ToUInt16(RespData["sim_port"]);
68 this.caps_url = "http://" + ((string)RespData["sim_ip"]) + ":" + (string)RespData["sim_port"] + "/";
69 this.RegionLocX = (uint)Convert.ToUInt32(RespData["region_locx"]);
70 this.RegionLocY = (uint)Convert.ToUInt32(RespData["region_locy"]);
71 this.sendkey = SendKey;
72 this.recvkey = RecvKey;
73 }
74 catch (Exception e)
75 {
76 System.Console.WriteLine(e.ToString());
77 }
78 return this;
79 }
80
81 public SimProfile LoadFromGrid(LLUUID UUID, string GridURL, string SendKey, string RecvKey)
82 {
83 try
84 {
85 Hashtable GridReqParams = new Hashtable();
86 GridReqParams["UUID"] = UUID.ToString();
87 GridReqParams["authkey"] = SendKey;
88 ArrayList SendParams = new ArrayList();
89 SendParams.Add(GridReqParams);
90 XmlRpcRequest GridReq = new XmlRpcRequest("simulator_login", SendParams);
91
92 XmlRpcResponse GridResp = GridReq.Send(GridURL, 3000);
93
94 Hashtable RespData = (Hashtable)GridResp.Value;
95 this.UUID = new LLUUID((string)RespData["UUID"]);
96 this.regionhandle = Helpers.UIntsToLong(((uint)Convert.ToUInt32(RespData["region_locx"]) * 256), ((uint)Convert.ToUInt32(RespData["region_locy"]) * 256));
97 this.regionname = (string)RespData["regionname"];
98 this.sim_ip = (string)RespData["sim_ip"];
99 this.sim_port = (uint)Convert.ToUInt16(RespData["sim_port"]);
100 this.caps_url = "http://" + ((string)RespData["sim_ip"]) + ":" + (string)RespData["sim_port"] + "/";
101 this.RegionLocX = (uint)Convert.ToUInt32(RespData["region_locx"]);
102 this.RegionLocY = (uint)Convert.ToUInt32(RespData["region_locy"]);
103 this.sendkey = SendKey;
104 this.recvkey = RecvKey;
105 }
106 catch (Exception e)
107 {
108 System.Console.WriteLine(e.ToString());
109 }
110 return this;
111 }
112
113
114 public SimProfile()
115 {
116 }
117 }
118
119}