From f41e5343c5568ba27893551716af9e578a81dfbe Mon Sep 17 00:00:00 2001 From: MW Date: Tue, 15 May 2007 14:54:53 +0000 Subject: 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). --- OpenSim.RegionServer/SimClient.cs | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'OpenSim.RegionServer/SimClient.cs') 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 ArrayList SendParams; XmlRpcRequest GridReq; XmlRpcResponse GridResp; + List enablePackets = new List(); foreach (Hashtable neighbour in ((RemoteGridBase)this.m_gridServer).neighbours) { Console.WriteLine( "http://" + neighbour["sim_ip"] + ":" + neighbour["sim_port"]); @@ -1262,9 +1263,14 @@ namespace OpenSim enablesimpacket.SimulatorInfo.IP += (uint)byteIP[1] << 8; enablesimpacket.SimulatorInfo.IP += (uint)byteIP[0]; enablesimpacket.SimulatorInfo.Port = (ushort)Convert.ToInt32(neighbour["sim_port"]); - Thread.Sleep(3000); - this.OutPacket(enablesimpacket); + enablePackets.Add(enablesimpacket); } + Thread.Sleep(3000); + foreach (Packet enable in enablePackets) + { + this.OutPacket(enable); + } + enablePackets.Clear(); } } } -- cgit v1.1