aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim.RegionServer/SimClient.cs
diff options
context:
space:
mode:
authorMW2007-05-15 14:54:53 +0000
committerMW2007-05-15 14:54:53 +0000
commitf41e5343c5568ba27893551716af9e578a81dfbe (patch)
treef25017fd937029c18099e01bff09aa57279ed4c7 /OpenSim.RegionServer/SimClient.cs
parentprovide ready-to-eat attributes parsed from byte array (diff)
downloadopensim-SC_OLD-f41e5343c5568ba27893551716af9e578a81dfbe.zip
opensim-SC_OLD-f41e5343c5568ba27893551716af9e578a81dfbe.tar.gz
opensim-SC_OLD-f41e5343c5568ba27893551716af9e578a81dfbe.tar.bz2
opensim-SC_OLD-f41e5343c5568ba27893551716af9e578a81dfbe.tar.xz
updated Build/project files to include the new projects and new files.
Improved the enable neighbours code (Simclient thread should no longer sleep for 3 seconds for each neighbour).
Diffstat (limited to 'OpenSim.RegionServer/SimClient.cs')
-rw-r--r--OpenSim.RegionServer/SimClient.cs10
1 files changed, 8 insertions, 2 deletions
diff --git a/OpenSim.RegionServer/SimClient.cs b/OpenSim.RegionServer/SimClient.cs
index 1f92a93..49221f8 100644
--- a/OpenSim.RegionServer/SimClient.cs
+++ b/OpenSim.RegionServer/SimClient.cs
@@ -1236,6 +1236,7 @@ namespace OpenSim
1236 ArrayList SendParams; 1236 ArrayList SendParams;
1237 XmlRpcRequest GridReq; 1237 XmlRpcRequest GridReq;
1238 XmlRpcResponse GridResp; 1238 XmlRpcResponse GridResp;
1239 List<Packet> enablePackets = new List<Packet>();
1239 foreach (Hashtable neighbour in ((RemoteGridBase)this.m_gridServer).neighbours) 1240 foreach (Hashtable neighbour in ((RemoteGridBase)this.m_gridServer).neighbours)
1240 { 1241 {
1241 Console.WriteLine( "http://" + neighbour["sim_ip"] + ":" + neighbour["sim_port"]); 1242 Console.WriteLine( "http://" + neighbour["sim_ip"] + ":" + neighbour["sim_port"]);
@@ -1262,9 +1263,14 @@ namespace OpenSim
1262 enablesimpacket.SimulatorInfo.IP += (uint)byteIP[1] << 8; 1263 enablesimpacket.SimulatorInfo.IP += (uint)byteIP[1] << 8;
1263 enablesimpacket.SimulatorInfo.IP += (uint)byteIP[0]; 1264 enablesimpacket.SimulatorInfo.IP += (uint)byteIP[0];
1264 enablesimpacket.SimulatorInfo.Port = (ushort)Convert.ToInt32(neighbour["sim_port"]); 1265 enablesimpacket.SimulatorInfo.Port = (ushort)Convert.ToInt32(neighbour["sim_port"]);
1265 Thread.Sleep(3000); 1266 enablePackets.Add(enablesimpacket);
1266 this.OutPacket(enablesimpacket);
1267 } 1267 }
1268 Thread.Sleep(3000);
1269 foreach (Packet enable in enablePackets)
1270 {
1271 this.OutPacket(enable);
1272 }
1273 enablePackets.Clear();
1268 } 1274 }
1269 } 1275 }
1270 } 1276 }