aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/GridServers
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/GridServers/LoginServer.cs22
1 files changed, 21 insertions, 1 deletions
diff --git a/src/GridServers/LoginServer.cs b/src/GridServers/LoginServer.cs
index e678dbf..f63e077 100644
--- a/src/GridServers/LoginServer.cs
+++ b/src/GridServers/LoginServer.cs
@@ -216,6 +216,21 @@ namespace OpenSim.GridServers
216 int SessionRand = this.RandomClass.Next(1,999); 216 int SessionRand = this.RandomClass.Next(1,999);
217 Session = new LLUUID("aaaabbbb-0200-"+SessionRand.ToString("0000")+"-8664-58f53e442797"); 217 Session = new LLUUID("aaaabbbb-0200-"+SessionRand.ToString("0000")+"-8664-58f53e442797");
218 218
219 //create some login info
220 Hashtable LoginFlagsHash = new Hashtable();
221 LoginFlagsHash["daylight_savings"]="N";
222 LoginFlagsHash["stipend_since_login"]="N";
223 LoginFlagsHash["gendered"]="Y";
224 LoginFlagsHash["ever_logged_in"]="Y";
225 ArrayList LoginFlags=new ArrayList();
226 LoginFlags.Add(LoginFlagsHash);
227
228 Hashtable GlobalT = new Hashtable();
229 GlobalT["sun_texture_id"] = "cce0f112-878f-4586-a2e2-a8f104bba271";
230 GlobalT["cloud_texture_id"] = "fc4b9f0b-d008-45c6-96a4-01dd947ac621";
231 GlobalT["moon_texture_id"] = "fc4b9f0b-d008-45c6-96a4-01dd947ac621";
232 ArrayList GlobalTextures = new ArrayList();
233 GlobalTextures.Add(GlobalT);
219 234
220 XmlRpcResponse response =(XmlRpcResponse)(new XmlRpcResponseDeserializer()).Deserialize(this._defaultResponse); 235 XmlRpcResponse response =(XmlRpcResponse)(new XmlRpcResponseDeserializer()).Deserialize(this._defaultResponse);
221 Hashtable responseData = (Hashtable)response.Value; 236 Hashtable responseData = (Hashtable)response.Value;
@@ -224,6 +239,11 @@ namespace OpenSim.GridServers
224 responseData["sim_ip"] = OpenSim_Main.cfg.IPListenAddr; 239 responseData["sim_ip"] = OpenSim_Main.cfg.IPListenAddr;
225 responseData["agent_id"] = Agent.ToStringHyphenated(); 240 responseData["agent_id"] = Agent.ToStringHyphenated();
226 responseData["session_id"] = Session.ToStringHyphenated(); 241 responseData["session_id"] = Session.ToStringHyphenated();
242 responseData["seconds_since_epoch"]=(Int32)(DateTime.UtcNow - new DateTime(1970,1,1)).TotalSeconds;
243 responseData["login-flags"]=LoginFlags;
244 responseData["global-textures"]=GlobalTextures;
245
246 //inventory
227 ArrayList InventoryList = (ArrayList) responseData["inventory-skeleton"]; 247 ArrayList InventoryList = (ArrayList) responseData["inventory-skeleton"];
228 Hashtable Inventory1 = (Hashtable)InventoryList[0]; 248 Hashtable Inventory1 = (Hashtable)InventoryList[0];
229 Hashtable Inventory2 = (Hashtable)InventoryList[1]; 249 Hashtable Inventory2 = (Hashtable)InventoryList[1];
@@ -249,7 +269,7 @@ namespace OpenSim.GridServers
249 _login.BaseFolder = BaseFolderID; 269 _login.BaseFolder = BaseFolderID;
250 _login.InventoryFolder = InventoryFolderID; 270 _login.InventoryFolder = InventoryFolderID;
251 271
252 //working on local computer so lets add to the gridserver's list of sessions? 272 //working on local computer if so lets add to the gridserver's list of sessions?
253 if(OpenSim_Main.gridServers.GridServer.GetName() == "Local") 273 if(OpenSim_Main.gridServers.GridServer.GetName() == "Local")
254 { 274 {
255 ((LocalGridBase)this._gridServer).AddNewSession(_login); 275 ((LocalGridBase)this._gridServer).AddNewSession(_login);