mirror of
https://github.com/opensim/opensim.git
synced 2026-08-06 01:06:30 +08:00
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).
This commit is contained in:
@@ -1236,6 +1236,7 @@ namespace OpenSim
|
||||
ArrayList SendParams;
|
||||
XmlRpcRequest GridReq;
|
||||
XmlRpcResponse GridResp;
|
||||
List<Packet> enablePackets = new List<Packet>();
|
||||
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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user